From 0f5ef2bc113c6c988307ae0e55dc19d5f74da069 Mon Sep 17 00:00:00 2001 From: hauke Date: Fri, 14 Dec 2012 22:45:12 +0000 Subject: brcm47xx: improve suppressing printing if a module was found in preinit function. Thank you Bastian Bittorf git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34680 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux') diff --git a/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm b/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm index 6d43217234..f5aebf5705 100644 --- a/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm +++ b/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm @@ -21,7 +21,7 @@ check_module () { insmod "$module" "$params" sleep 1 - grep "^$module" /proc/modules > /dev/null + grep -q ^"$module " /proc/modules return $? } -- cgit v1.2.3