summaryrefslogtreecommitdiff
path: root/target
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
parent86cd825c1feef7c185ebce1bc5cd4ee4ba6068d9 (diff)
downloadmtk-20170518-4901ac8225e0123d0a06b19b592ffef389b8806c.zip
mtk-20170518-4901ac8225e0123d0a06b19b592ffef389b8806c.tar.gz
mtk-20170518-4901ac8225e0123d0a06b19b592ffef389b8806c.tar.bz2
brcm47xx: improve suppressing printing if a module was found in preinit function.
Thank you Bastian Bittorf SVN-Revision: 34680
Diffstat (limited to 'target')
-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 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 $?
}