From f7b5445dedaaed1102ba12f5c723698b2e1cb3e9 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 21 Jul 2017 16:14:12 +0200 Subject: [PATCH] minfix --- update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update b/update index 09eec75..f9e5d4b 100755 --- a/update +++ b/update @@ -16,8 +16,8 @@ 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 | sudo -u sats tee $TMP_DIR/net.ap; -echo $IP_AD | sudo -u sats tee $TMP_DIR/net.ip; +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;