Sfoglia il codice sorgente

enable actual reboot

Danja Vasiliev 10 anni fa
parent
commit
062c13d348
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      openwrt/DIR505A1/www/lib/admin/admin.sh

+ 2 - 2
openwrt/DIR505A1/www/lib/admin/admin.sh

@@ -199,14 +199,14 @@ updateFw() {
   _OUT=$(runSuid "ls /root")
   _ERR=$?
   [[ $_ERR -gt 0 ]] && showMesg "mtd failed, $_OUT"
+  runSuid reboot
   showMesg 'Firmware update is completed, rebooting..' 'this might take up to 60 seconds'
-  runSuid reboot -w
 }
 
 rebootNow() {
   logThis "reboot: now!"
+  runSuid reboot
   showMesg 'Rebooting..' 'this might take up to 60 seconds'
-  runSuid reboot -w
 }
 
 getUci() {