aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/base-files
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2012-12-14 22:45:12 +0000
committerHauke Mehrtens <hauke@openwrt.org>2012-12-14 22:45:12 +0000
commit0866b84b46c45053372bd9eda53a0c952fdf7176 (patch)
tree71c1019e1acf6d3fd961095bfd506f922712ffbc /target/linux/brcm47xx/base-files
parent74ee635064c0f6e5e8ab0cd83373bdff83ad2e72 (diff)
downloadmaster-187ad058-0866b84b46c45053372bd9eda53a0c952fdf7176.tar.gz
master-187ad058-0866b84b46c45053372bd9eda53a0c952fdf7176.tar.bz2
master-187ad058-0866b84b46c45053372bd9eda53a0c952fdf7176.zip
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
Diffstat (limited to 'target/linux/brcm47xx/base-files')
-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 $?
}