brcm47xx: improve suppressing printing if a module was found in preinit function.
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 14 Dec 2012 22:45:12 +0000 (22:45 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 14 Dec 2012 22:45:12 +0000 (22:45 +0000)
Thank you Bastian Bittorf

SVN-Revision: 34680

target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm

index 6d43217234c4db4da9da52c651ed8af733b28211..f5aebf5705866302a17f4585dd32cae6c5fd327d 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 $?
 }