summaryrefslogtreecommitdiff
path: root/target/linux/pxcab/base-files/lib
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 /target/linux/pxcab/base-files/lib
parent373b78cb28e086abe08d2f6d57f2f441fc5d862f (diff)
downloadmtk-20170518-195d65dd871656c790f0cb4eb1f6e5eb03f8a726.zip
mtk-20170518-195d65dd871656c790f0cb4eb1f6e5eb03f8a726.tar.gz
mtk-20170518-195d65dd871656c790f0cb4eb1f6e5eb03f8a726.tar.bz2
preinit: use grep -q where applicable
SVN-Revision: 19484
Diffstat (limited to 'target/linux/pxcab/base-files/lib')
-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 9739277..dd7330d 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 "