[pxcab] preinit: use grep -q where applicable
[openwrt.git] / target / linux / pxcab / base-files / lib / preinit / 45_failsafe_pxcab
1 #!/bin/sh
2 # Copyright (C) 2006-2010 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
4
5 failsafe_wait() {
6 FAILSAFE=
7 grep -q 'failsafe=' /proc/cmdline && FAILSAFE=true && export FAILSAFE
8 if [ "$FAILSAFE" != "true" ]; then
9 preinit_net_echo "Please press button now to enter failsafe"
10 echo -n "Press "
11 fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE
12 fi
13 }
14
This page took 0.048212 seconds and 5 git commands to generate.