From 897cacf4679f69bb8e224a09366cef274af575f2 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 29 Mar 2015 17:51:39 -0500 Subject: better use -q for grep --- package/adktest/Makefile | 2 +- package/adktest/files/adktest.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'package/adktest') diff --git a/package/adktest/Makefile b/package/adktest/Makefile index 4906d6ec5..7f155748e 100644 --- a/package/adktest/Makefile +++ b/package/adktest/Makefile @@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk PKG_NAME:= adktest PKG_VERSION:= 0.1 -PKG_RELEASE:= 7 +PKG_RELEASE:= 8 PKG_DESCR:= helper tools and scripts for qemu testing PKG_DEPENDS:= rdate PKG_SECTION:= base/misc diff --git a/package/adktest/files/adktest.init b/package/adktest/files/adktest.init index ac1a047aa..e1fe9a8c2 100755 --- a/package/adktest/files/adktest.init +++ b/package/adktest/files/adktest.init @@ -11,7 +11,7 @@ autostart) exec sh $0 start ;; start) - grep shell /proc/cmdline > /dev/null 2&>1 + grep -q shell /proc/cmdline if [ $? -eq 0 ];then exit 0 fi -- cgit v1.2.3