diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-12-12 17:06:20 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-12-12 17:06:20 +0000 |
commit | 7ebeb13ccb635581d43a6d6a231eaa29cdc6877f (patch) | |
tree | d591ee6dd422f2710f518046341b6cf31d457677 | |
parent | e3bb0d8ffa57abe8aede3da41e87711049d033c4 (diff) | |
download | anaconda-7ebeb13ccb635581d43a6d6a231eaa29cdc6877f.tar.gz anaconda-7ebeb13ccb635581d43a6d6a231eaa29cdc6877f.tar.xz anaconda-7ebeb13ccb635581d43a6d6a231eaa29cdc6877f.zip |
/lib/modules/$(uname -r)/pcmcia no longer exists. we probably want to
add a module-info mechanism here eventually
-rwxr-xr-x | scripts/mk-images | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/mk-images b/scripts/mk-images index 2c832bbbb..030448303 100755 --- a/scripts/mk-images +++ b/scripts/mk-images @@ -821,12 +821,10 @@ for kernelvers in $vertag; do usage fi - if [ -d $KERNELROOT/lib/modules/$version/pcmcia -a -f $KERNELROOT/etc/pcmcia/config ]; then - # 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) + if [ -f $KERNELROOT/etc/pcmcia/config ]; then + # This gets everything mentioned in /etc/pcmcia/config. We probably + # want to do some module-info stuff here too + PCMCIAMODULES=$((perl -e 'while (<>) { s/^.*class.*module +"// || next; s/[" ]//g; s/,/\n/g; print }' $KERNELROOT/etc/pcmcia/config | sed 's/\.o//g') | sort -u) fi allmods=$(find $KERNELROOT/lib/modules/$version -name *.o) |