[arch-projects] [initscripts][PATCH 2/2] functions: skip check for /proc/modules
Dave Reisner
d at falconindy.com
Sun Jan 22 20:40:12 EST 2012
kmod doesn't read from /proc/modules to get attributes like module init
state, and won't act up when /proc isn't mounted or if /proc/modules
doesn't exist.
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
functions | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/functions b/functions
index 98a3283..24da795 100644
--- a/functions
+++ b/functions
@@ -358,7 +358,7 @@ udevd_modprobe() {
stat_done
# Load modules from the MODULES array defined in rc.conf
- [[ -f /proc/modules ]] && (( ${#MODULES[*]} )) &&
+ (( ${#MODULES[*]} )) &&
status -v "Loading User-specified Modules" modprobe -ab "${MODULES[@]}"
status "Waiting for UDev uevents to be processed" \
--
1.7.8.4
More information about the arch-projects
mailing list