From 0866b84b46c45053372bd9eda53a0c952fdf7176 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens 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/brcm47xx/base-files/lib/preinit') 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