Explorar el Código

增加升级时关看门狗操作,防止升级过程中重启

guohui hace 1 año
padre
commit
9050a1cb00
Se han modificado 2 ficheros con 6 adiciones y 8 borrados
  1. 4 6
      output/t113i/push/tools/script.sh
  2. 2 2
      output/t113i/push2/tools/script.sh

+ 4 - 6
output/t113i/push/tools/script.sh

@@ -16,8 +16,9 @@ function is_ipv6()
 
 function kill_all()
 {
+    echo V /dev/watchdog
     killall  RestartApp.sh smartMornitor.sh smartMonitor.sh main  snmpd  Qt_Test  smartPDU  smartUPG
-
+    
 }
 function rm_old()
 {
@@ -27,6 +28,8 @@ function rm_old()
     rm -f  /usr/lib/libnetsnmp*
     rm -f  /usr/sbin/smartMornitor.sh
     rm -f  /usr/libmpr.so /usr/libhttp.so /usr/lib/libesp.o /usr/lib/libmodbus*
+    
+    rm -rf /root/run /root/bak
 }
 function set_net()
 {
@@ -56,11 +59,6 @@ function set_net()
 kill_all
 rm_old
 
-shopt  -s  extglob
-echo rm home files except for $obj 
-rm -rf  !("$obj") 
-shopt  -u  extglob
-
 echo release $obj ... 
 tar -xpf  $obj  -C  /  >/dev/null  2>&1
 rm $obj

+ 2 - 2
output/t113i/push2/tools/script.sh

@@ -15,8 +15,8 @@ function is_ipv6()
 }
 function kill_all()
 {
+    echo V /dev/watchdog
     killall  RestartApp.sh smartMornitor.sh smartMonitor.sh main  snmpd  Qt_Test  smartPDU  smartUPG
-
 }
 function rm_old()
 {
@@ -27,7 +27,7 @@ function rm_old()
     rm -f  /usr/sbin/smartMornitor.sh
     rm -f  /usr/libmpr.so /usr/libhttp.so /usr/lib/libesp.o /usr/lib/libmodbus*
 
-    rm -rf /root/run
+    rm -rf /root/run /root/bak
 }
 function set_net()
 {