summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-06-17 21:24:55 +0000
committerJeff Bailey <jbailey@ubuntu.com>2005-06-17 21:24:55 +0000
commitb22f2c7fc49c9874eb8f2df1d8b1fabec540cfb0 (patch)
treef57270e71f93eb59157744d6ce91c153ecf6507d /scripts/functions
parent287dcae1407c303ee929d2bff0a49c1e721b05ae (diff)
downloadinitramfs-tools-b22f2c7fc49c9874eb8f2df1d8b1fabec540cfb0.tar.gz
initramfs-tools-b22f2c7fc49c9874eb8f2df1d8b1fabec540cfb0.zip
Make quieter, match mkinitrd interface, pull in dependencies for nfs and dhcp, document upstream repository location
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index d5d1035..ab23352 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -111,14 +111,18 @@ load_modules()
depmod
for x in /sys/bus/pci/devices/*; do
- modprobe -q $(cat ${x}/modalias)
+ if [ -e ${x}/modalias ]; then
+ modprobe -q $(cat ${x}/modalias)
+ fi
done
# Give the USB bus a moment to catch up
sleep 2
for x in /sys/bus/usb/devices/*; do
- modprobe -q $(cat ${x}/modalias)
+ if [ -e ${x}/modalias ]; then
+ modprobe -q $(cat ${x}/modalias)
+ fi
done
# Load the modules