From 0b41662a124d84951f968893bdd99221001d02fa Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 21 Jul 2017 17:16:37 +0200 Subject: [PATCH] Restored previous `update` script --- update | 9 --------- 1 file changed, 9 deletions(-) diff --git a/update b/update index f9e5d4b..f7bc9bb 100755 --- a/update +++ b/update @@ -10,15 +10,6 @@ if [ ! -e /target/sync ]; then slog "not synchronized yet, aborting" - "update" && exit 127; fi; -# (2) Get wireless IFACE # -IFACE=`sudo ifconfig | grep -o -P "^w\w+"`; - -# (3) Get network identity # -AP_ID=`sudo iwconfig $IFACE | grep -o -P "ESSID:\"SATS_.+\"" | sed 's/ESSID:"SATS_//' | sed 's/"$//'`; -IP_AD=`sudo ifconfig $IFACE | grep -o -P "inet addr:\d+\.\d+\.\d+\.\d+" | sed 's/inet addr://'` -echo $AP_ID > $TMP_DIR/net.ap; -echo $IP_AD > $TMP_DIR/net.ip; - # (2) Send data + fetch configuration test "$($SOURCE_DIR/lib/api/update)" = "127" && slog "update failed" - "update" && exit 127;