summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-01-08 17:50:28 +0000
committerErik Troan <ewt@redhat.com>2001-01-08 17:50:28 +0000
commit487b89a11eae5cd5ceb5e7a54b9891120bb49669 (patch)
tree14a0ef161c747ca84cc535746153a52104153307
parent520c9cfbd7d7a21b678aff0415b0a7fdafe3e945 (diff)
downloadanaconda-487b89a11eae5cd5ceb5e7a54b9891120bb49669.tar.gz
anaconda-487b89a11eae5cd5ceb5e7a54b9891120bb49669.tar.xz
anaconda-487b89a11eae5cd5ceb5e7a54b9891120bb49669.zip
build a better pcmcia module list
-rwxr-xr-xscripts/mk-images7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index 463b2dc6d..82f753f77 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -755,8 +755,11 @@ makedriverdisk () {
fi
if [ -d $KERNELROOT/lib/modules/$version/pcmcia ]; then
- PCMCIAMODULES=$(cd $KERNELROOT/lib/modules/$version/pcmcia; ls *.o |
- sed 's/\.o//g')
+ # This gets all of the modules in the pcmcia directory, as well as
+ # everything mentioned in /etc/pcmcia/config
+ PCMCIAMODULES=$((perl -e 'while (<>) { s/^.*class.*module +"// || next; s/[" ]//g; s/,/\n/g; print }' $KERNELROOT/etc/pcmcia/config;
+ cd $KERNELROOT/lib/modules/$version/pcmcia; ls *.o | sed 's/\.o//g') |
+ sort -u)
fi
allmods=$(find $KERNELROOT/lib/modules/$version -name *.o)