From 4901ac8225e0123d0a06b19b592ffef389b8806c 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 SVN-Revision: 34680 --- 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 6d43217..f5aebf5 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.1