[arch-general] [PATCH] rc.sysinit: only call modprobe once
Dave Reisner
d at falconindy.com
Sun Sep 19 20:47:03 EDT 2010
Use modprobe -a and a bash PE to filter the MODULES array.
Signed-off-by: Dave Reisner <d at falconindy.com>
---
rc.sysinit | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/rc.sysinit b/rc.sysinit
index 09d5e97..07180d0 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -94,11 +94,7 @@ fi
# Load modules from the MODULES array defined in rc.conf
if [[ $load_modules != off && -f /proc/modules ]]; then
stat_busy "Loading Modules"
- for mod in "${MODULES[@]}"; do
- if [[ $mod = ${mod#!} ]]; then
- /sbin/modprobe $mod
- fi
- done
+ /sbin/modprobe -a "${MODULES[@]/\!*/}"
stat_done
fi
--
1.7.2.3
More information about the arch-general
mailing list