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 <[email protected]>
---
 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

Reply via email to