Forráskód Böngészése

removing extra 'pon gprs' and bug fix for nc to quit after 1s after closed connection

clementinecomputing 6 éve
szülő
commit
0e8f8ae18b
1 módosított fájl, 1 hozzáadás és 5 törlés
  1. 1 5
      busunit/scripts/connection_tether-ppp.sh

+ 1 - 5
busunit/scripts/connection_tether-ppp.sh

@@ -82,7 +82,7 @@ perform_post_connect_checkin()
 
   #     Send these gathered data to the update daemon.  The leading '#' tells the server that this is a 
   #checkin, not an update request.
-  echo -e "#$busunitnum\t$equipnum\t$mac\t$imei\t$imsi\t$version" | nc localhost $UPDATE_DAEMON_PORT
+  echo -e "#$busunitnum\t$equipnum\t$mac\t$imei\t$imsi\t$version" | nc -q1 localhost $UPDATE_DAEMON_PORT
 }
 
 #    This function generates the server->client port forwards to allow a sysadmin to log into any unit that is on
@@ -196,10 +196,6 @@ while true; do
     #
     /usr/bin/pon gprs
 
-    # Give the modem a minute to do its thing...
-    #
-    /usr/bin/pon gprs
-
     # Give the modem a minute to do its thing...
     #
     /bin/sleep $SLEEP_AFTER_DIAL