File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ if [ -e /mnt/secure/su ]; then
1111 if [ -e /mnt/secure/su ]; then
1212 dialog 3 " " " Failed to remove root" " OK"
1313 else
14- dialog 1 " " " Root removed" " OK"
14+ dialog 1 " " " Root removed." " Restart now" " Restart later"
15+ if [ $? == 1 ]; then
16+ sync
17+ iv2sh reboot
18+ fi
1519 fi
1620 exit 0
1721fi
Original file line number Diff line number Diff line change 11#! /bin/sh
2+ export PATH=/mnt/secure/bin:/sbin:/usr/sbin:$PATH
3+ chmod 755 /mnt/secure
24sleep 2
35# safety escape
46kc=$( dmesg | grep gpio_keys_gpio_isr | wc -l)
@@ -7,7 +9,7 @@ if [ $kc -gt 10 ]; then
79fi
810export PATH=/mnt/secure/bin:/sbin:/usr/sbin:$PATH
911. /mnt/ext1/system/config/rootsettings.cfg
10- for f in /mnt/ext1/system/init.d/* .sh /mnt/secure/init.d/* .sh; do
12+ for f in /mnt/ext1/system/init.d/* .sh /mnt/secure/etc/ init.d/* .sh; do
1113 n=${f##*/ }
1214 bn=${n: 3}
1315 id=${bn/ .sh/ }
You can’t perform that action at this time.
0 commit comments