Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion configFiles/balancer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ tag="[BALANCER]"
max_retries="10"

echo "${tag} Started"
ap_name="$(sh /home/kipr/wombat-os/flashFiles/wallaby_get_serial.sh)-wombat"
serial="$(/home/kipr/wombat-os/flashFiles/wallaby_get_serial.sh)" || exit 1
[ -n "$serial" ] || { echo "empty Wombat serial" >&2; exit 1; }
ap_name="${serial}-wombat"

cleanup() {
# Ensure wifi transmitter is turned back on
Expand Down
22 changes: 6 additions & 16 deletions flashFiles/wallaby_get_serial.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
#!/bin/bash

VCMD1='i2cget -y 1 0x50 0x40'
VCMD2='i2cget -y 1 0x50 0x41'
VCMD3='i2cget -y 1 0x50 0x42'
VCMD4='i2cget -y 1 0x50 0x43'

V1=$(eval $VCMD1)
V2=$(eval $VCMD2)
V3=$(eval $VCMD3)
V4=$(eval $VCMD4)

printf '%s' "\x$(printf %x ${V1})" | sed 's/^...//'
printf '%s' "\x$(printf %x ${V2})" | sed 's/^...//'
printf '%s' "\x$(printf %x ${V3})" | sed 's/^...//'
printf '%s' "\x$(printf %x ${V4})" | sed 's/^...//'
#!/usr/bin/env bash
set -euo pipefail

for reg in 0x40 0x41 0x42 0x43; do
v=$(i2cget -y 1 0x50 "$reg")
printf '%b' "\\x${v#0x}"
done
Binary file modified updateFiles/pkgs/botui.deb
Binary file not shown.
Binary file modified updateFiles/pkgs/installs/gpiod_1.6.2-1_arm64.deb
Binary file not shown.
Binary file modified updateFiles/pkgs/installs/libgpiod-dev_1.6.2-1_arm64.deb
Binary file not shown.
Binary file modified updateFiles/pkgs/installs/libgpiod2_1.6.2-1_arm64.deb
Binary file not shown.
Binary file modified updateFiles/pkgs/installs/udhcpd_arm64.deb
Binary file not shown.
Binary file modified updateFiles/pkgs/kipr.deb
Binary file not shown.
Binary file modified updateFiles/pkgs/libkar.deb
Binary file not shown.
Binary file modified updateFiles/pkgs/pcompiler.deb
Binary file not shown.