From: Jo-Philipp Wich Date: Mon, 1 Feb 2010 00:35:08 +0000 (+0000) Subject: preinit: use grep -q where applicable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=195d65dd871656c790f0cb4eb1f6e5eb03f8a726;p=openwrt%2Fstaging%2Fadrian.git preinit: use grep -q where applicable SVN-Revision: 19484 --- 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 "