aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/base-files/lib
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-12-14 22:45:12 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-12-14 22:45:12 +0000
commit4901ac8225e0123d0a06b19b592ffef389b8806c (patch)
tree4b2748604627fe4fb7e330cf3dbdd393bacc4677 /target/linux/brcm47xx/base-files/lib
parent86cd825c1feef7c185ebce1bc5cd4ee4ba6068d9 (diff)
downloadupstream-4901ac8225e0123d0a06b19b592ffef389b8806c.tar.gz
upstream-4901ac8225e0123d0a06b19b592ffef389b8806c.tar.bz2
upstream-4901ac8225e0123d0a06b19b592ffef389b8806c.zip
brcm47xx: improve suppressing printing if a module was found in preinit function.
Thank you Bastian Bittorf SVN-Revision: 34680
Diffstat (limited to 'target/linux/brcm47xx/base-files/lib')
-rw-r--r--target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm2
1 files changed, 1 insertions, 1 deletions
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 $?
}