FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 06-30-2010, 09:47 PM
Victor Lowther
 
Default Bashify module loading in rc.sysinit.

---
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
 

Thread Tools




All times are GMT. The time now is 09:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org