Merge branch 'adm8668'
[openwrt.git] / target / linux / adm8668 / base-files / lib / preinit / 45_failsafe_adm8668
1 #!/bin/sh
2
3 failsafe_wait() {
4 FAILSAFE=
5 grep -q 'SES: UP FLIP' /proc/adm8668/buttons && FAILSAFE=true && export FAILSAFE
6 grep -q 'SES: DOWN' /proc/adm8668/buttons && FAILSAFE=true && export FAILSAFE
7 if [ "$FAILSAFE" != "true" ]; then
8 preinit_net_echo "Please press button now to enter failsafe"
9 fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE
10 fi
11 }
This page took 0.041397 seconds and 5 git commands to generate.