From: Hauke Mehrtens Date: Fri, 14 Dec 2012 22:45:12 +0000 (+0000) Subject: brcm47xx: improve suppressing printing if a module was found in preinit function. X-Git-Tag: reboot~11975 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4901ac8225e0123d0a06b19b592ffef389b8806c;p=openwrt%2Fstaging%2Fchunkeey.git brcm47xx: improve suppressing printing if a module was found in preinit function. Thank you Bastian Bittorf SVN-Revision: 34680 --- 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 $? }