summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-09-29 12:02:01 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-09-29 12:02:01 +0000
commit1f7186d2888ea9c65824c0c97aec7c84d606c387 (patch)
treee40549e0357880d274d57569204bf30ef60a7a40 /openwrt/package/base-files/default/etc
parent2880bd87aa348d426a0558f973b9e2afc59425f0 (diff)
downloadmtk-20170518-1f7186d2888ea9c65824c0c97aec7c84d606c387.zip
mtk-20170518-1f7186d2888ea9c65824c0c97aec7c84d606c387.tar.gz
mtk-20170518-1f7186d2888ea9c65824c0c97aec7c84d606c387.tar.bz2
check if /proc/sys/reset exist, from sven-ola
SVN-Revision: 2002
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-rwxr-xr-xopenwrt/package/base-files/default/etc/preinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/preinit b/openwrt/package/base-files/default/etc/preinit
index 34de88c..ff9bb4b 100755
--- a/openwrt/package/base-files/default/etc/preinit
+++ b/openwrt/package/base-files/default/etc/preinit
@@ -5,7 +5,7 @@ mount none /proc -t proc
insmod diag
echo 0x01 > /proc/sys/diag
sleep 1
-if [ $(cat /proc/sys/reset) = 1 -o "$(nvram get failsafe)" = 1 ]; then
+if [ ! -f /proc/sys/reset ] || [ $(cat /proc/sys/reset) = 1 -o "$(nvram get failsafe)" = 1 ]; then
export FAILSAFE=true
[ "$(nvram get boot_wait)" != "on" ] && {
nvram set boot_wait=on