X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e937ecf08ed14a7b0df658c0a9eb8ce5027753c1..19a1490f400695cadb7b94fe70cde19d6c45bc8f:/target/default/target_skeleton/etc/preinit?ds=inline diff --git a/target/default/target_skeleton/etc/preinit b/target/default/target_skeleton/etc/preinit index 5869f61e5..7a02e3121 100755 --- a/target/default/target_skeleton/etc/preinit +++ b/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