diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-01 00:33:34 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-02-01 00:33:34 +0000 |
commit | 536f5da5d32e13cf4786dfbc3b510ca38313e866 (patch) | |
tree | e070960aa7060146be48a9e3ce8b9c47b2f2801e /target/linux/x86/base-files | |
parent | dc4b039c86e8177010f0d2df11e943da1ba36bd3 (diff) | |
download | upstream-536f5da5d32e13cf4786dfbc3b510ca38313e866.tar.gz upstream-536f5da5d32e13cf4786dfbc3b510ca38313e866.tar.bz2 upstream-536f5da5d32e13cf4786dfbc3b510ca38313e866.zip |
[x86] preinit: use grep -q where applicable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19479 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86/base-files')
-rw-r--r-- | target/linux/x86/base-files/lib/preinit/45_failsafe_x86 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/x86/base-files/lib/preinit/45_failsafe_x86 b/target/linux/x86/base-files/lib/preinit/45_failsafe_x86 index 97392774da..dd7330d5d7 100644 --- a/target/linux/x86/base-files/lib/preinit/45_failsafe_x86 +++ b/target/linux/x86/base-files/lib/preinit/45_failsafe_x86 @@ -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 " |