brcm47xx: suppress printing if a module was found in preinit function.
[openwrt.git] / target / linux / brcm47xx / base-files / lib / preinit / 05_init_interfaces_brcm
index 038a415..6d43217 100644 (file)
@@ -21,11 +21,12 @@ check_module () {
 
   insmod "$module" "$params"
   sleep 1
-  grep "^$module" /proc/modules
+  grep "^$module" /proc/modules > /dev/null
   return $?
 }
 
 init_iface() {
+       check_module hwmon
        check_module tg3
        insmod switch-core
        check_module switch-robo || check_module switch-adm  || {