brcm47xx: improve suppressing printing if a module was found in preinit function.
[openwrt.git] / target / linux / brcm47xx / base-files / lib / preinit / 05_init_interfaces_brcm
index 6d43217..f5aebf5 100644 (file)
@@ -21,7 +21,7 @@ check_module () {
 
   insmod "$module" "$params"
   sleep 1
-  grep "^$module" /proc/modules > /dev/null
+  grep -q ^"$module " /proc/modules
   return $?
 }