diff options
| author | Erik Troan <ewt@redhat.com> | 2001-01-08 17:50:28 +0000 |
|---|---|---|
| committer | Erik Troan <ewt@redhat.com> | 2001-01-08 17:50:28 +0000 |
| commit | 487b89a11eae5cd5ceb5e7a54b9891120bb49669 (patch) | |
| tree | 14a0ef161c747ca84cc535746153a52104153307 /scripts | |
| parent | 520c9cfbd7d7a21b678aff0415b0a7fdafe3e945 (diff) | |
build a better pcmcia module list
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/mk-images | 7 |
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) |
