[arch-general] [PATCH 29/48] Bashify module loading in rc.sysinit.
Victor Lowther
victor.lowther at gmail.com
Wed Jun 30 17:47:44 EDT 2010
---
rc.sysinit | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/rc.sysinit b/rc.sysinit
index f3e60b7..1d16224 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -92,16 +92,14 @@ if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
fi
# Load modules from the MODULES array defined in rc.conf
-if ! [ "$load_modules" = "off" ]; then
- if [ -f /proc/modules ]; then
- stat_busy "Loading Modules"
- for mod in "${MODULES[@]}"; do
- if [ "$mod" = "${mod#!}" ]; then
- /sbin/modprobe $mod
- fi
- done
- stat_done
+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
+ stat_done
fi
# Wait for udev uevents
--
1.7.1
More information about the arch-general
mailing list