From: Jo-Philipp Wich Date: Mon, 1 Feb 2010 00:34:34 +0000 (+0000) Subject: preinit: use grep -q where applicable X-Git-Tag: reboot~21160 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f149688a66387671b22a8eadb2e69899268abeb;p=oweals%2Fopenwrt.git preinit: use grep -q where applicable SVN-Revision: 19481 --- diff --git a/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips b/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips index e2cf52dc4e..7008928204 100644 --- a/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips +++ b/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips @@ -2,7 +2,7 @@ init_nfs() { - grep "/dev/root" /proc/mounts |grep -q nfs && { + grep "/dev/root" /proc/mounts | grep -q nfs && { echo "- init nfs -" exec /sbin/init }