]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: exclude kernel modules, which need iw_handler_get_spy
authorHarald Hoyer <harald@redhat.com>
Fri, 14 Aug 2009 14:12:02 +0000 (16:12 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Aug 2009 14:21:03 +0000 (16:21 +0200)
modules.d/40network/installkernel

index 3b61fdc5e52166d7cef475c1373ce0a649450b5a..5235714ef6fb4fc3601474e3d91f322a8ef1db8d 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/bash
 # Include wired net drivers, excluding wireless
 for modname in $(find "$srcmods/kernel/drivers" -name '*.ko'); do
-  if nm -uPA $modname | egrep -q 'eth_type_trans|register_virtio_device'; then
+  if nm -uPA $modname | egrep -q 'eth_type_trans|register_virtio_device' \
+       && ! nm -uPA $modname | egrep -q 'iw_handler_get_spy'; then
     if echo "$modname" | egrep -q '/wireless/|/isdn/|/uwb/'; then
       continue
     else