summaryrefslogtreecommitdiff
path: root/openwrt
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-05-05 12:01:56 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-05-05 12:01:56 +0000
commitc8050de52398aaa728ce127225fd2927988e034c (patch)
treeb927d04d3d9434610b651167748bb64018aa2a94 /openwrt
parenta287d24489385e7f2335b0628f2899c51e61c9c5 (diff)
downloadmtk-20170518-c8050de52398aaa728ce127225fd2927988e034c.zip
mtk-20170518-c8050de52398aaa728ce127225fd2927988e034c.tar.gz
mtk-20170518-c8050de52398aaa728ce127225fd2927988e034c.tar.bz2
use full path
SVN-Revision: 807
Diffstat (limited to 'openwrt')
-rwxr-xr-xopenwrt/target/default/target_skeleton/etc/preinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/target/default/target_skeleton/etc/preinit b/openwrt/target/default/target_skeleton/etc/preinit
index 5869f61..7a02e31 100755
--- a/openwrt/target/default/target_skeleton/etc/preinit
+++ b/openwrt/target/default/target_skeleton/etc/preinit
@@ -3,7 +3,7 @@ mount none /proc -t proc
insmod diag
echo 0x01 > /proc/sys/diag
sleep 1
-if [ $(cat /proc/sys/reset) = 1 ] || [ "$(nvram get failsafe)" = 1 ]; then
+if [ $(cat /proc/sys/reset) = 1 ] || [ "$(/usr/sbin/nvram get failsafe)" = 1 ]; then
export FAILSAFE=true
while :; do { echo $(((X=(X+1)%8)%2)) > /proc/sys/diag; sleep $((X==0)); } done &
fi