summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
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