diff options
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) |