From 0c52c46c4b7e813aac875995ee07e1b5309c9337 Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 1 Feb 2010 00:35:08 +0000 Subject: [pxcab] preinit: use grep -q where applicable git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19484 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/pxcab/base-files/lib/preinit/45_failsafe_pxcab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " -- cgit v1.2.3