summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-02-01 00:35:08 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-02-01 00:35:08 +0000
commit195d65dd871656c790f0cb4eb1f6e5eb03f8a726 (patch)
tree3c1bbe50c3f2fb0e1e82bab47d74ca8084176aee
parent373b78cb28e086abe08d2f6d57f2f441fc5d862f (diff)
downloadmaster-31e0f0ae-195d65dd871656c790f0cb4eb1f6e5eb03f8a726.tar.gz
master-31e0f0ae-195d65dd871656c790f0cb4eb1f6e5eb03f8a726.tar.bz2
master-31e0f0ae-195d65dd871656c790f0cb4eb1f6e5eb03f8a726.zip
preinit: use grep -q where applicable
SVN-Revision: 19484
-rw-r--r--target/linux/pxcab/base-files/lib/preinit/45_failsafe_pxcab2
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 "