linuxrc: trying to fix problem with broken busybox
authorMichael Gebetsroither <michael.geb@gmx.at>
Tue, 27 Mar 2007 22:20:08 +0000 (00:20 +0200)
committerMichael Gebetsroither <michael.geb@gmx.at>
Tue, 27 Mar 2007 22:20:08 +0000 (00:20 +0200)
rewrite/linuxrc

index 48b2aa9..bc81d85 100644 (file)
@@ -531,8 +531,9 @@ if [ -n "$NFS" ]; then
     done
   }
   # modules.alias and modules.dep are in place so USE IT :)!
-  modLoad "$(for x in $(find /sys/devices/ -name modalias); do grep pci: $x; done |/static/xargs)"
-
+  find /sys/devices/ -name modalias |/static/xargs -r /static/grep -h pci: |while read i; do
+    modLoad "$i"
+  done
   # loading additional modules
   modLoad sunrpc lockd af_packet nfs