소스 검색

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

clementinecomputing 6 년 전
부모
커밋
0e8f8ae18b
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  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