summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-01-16 13:25:37 -0500
committerDave Reisner <dreisner@archlinux.org>2012-01-22 20:33:22 -0500
commitb52fa3010a6f7d9ad99dcc9dfab0a9f9a5434a9b (patch)
tree1c4e267721045ea69f94bc4833db474d6f60f4df
parent89e3f31a64a354b850e6297c67c625f7dd6872b4 (diff)
functions: skip check for /proc/modules
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@archlinux.org>
-rw-r--r--functions2
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" \