diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-01 00:35:08 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-01 00:35:08 +0000 |
commit | 2c28ebcdee04b76762deda2dc067e40abd7f89a7 (patch) | |
tree | 21c6515f31b29789c87322accbd4f86863482fc0 /target/linux/pxcab | |
parent | 204fa6c4e3bd3ffebb991930909bb078e4f43a31 (diff) | |
download | upstream-2c28ebcdee04b76762deda2dc067e40abd7f89a7.tar.gz upstream-2c28ebcdee04b76762deda2dc067e40abd7f89a7.tar.bz2 upstream-2c28ebcdee04b76762deda2dc067e40abd7f89a7.zip |
[pxcab] preinit: use grep -q where applicable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19484 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/pxcab')
-rw-r--r-- | target/linux/pxcab/base-files/lib/preinit/45_failsafe_pxcab | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/pxcab/base-files/lib/preinit/45_failsafe_pxcab b/target/linux/pxcab/base-files/lib/preinit/45_failsafe_pxcab index 97392774da..dd7330d5d7 100644 --- a/target/linux/pxcab/base-files/lib/preinit/45_failsafe_pxcab +++ b/target/linux/pxcab/base-files/lib/preinit/45_failsafe_pxcab @@ -4,7 +4,7 @@ failsafe_wait() { FAILSAFE= - grep 'failsafe=' /proc/cmdline > /dev/null && FAILSAFE=true && export FAILSAFE + grep -q 'failsafe=' /proc/cmdline && FAILSAFE=true && export FAILSAFE if [ "$FAILSAFE" != "true" ]; then preinit_net_echo "Please press button now to enter failsafe" echo -n "Press " |