summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-live/etc/live-sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/linhes-live/etc/live-sysinit')
-rw-r--r--abs/core-testing/linhes-live/etc/live-sysinit19
1 files changed, 19 insertions, 0 deletions
diff --git a/abs/core-testing/linhes-live/etc/live-sysinit b/abs/core-testing/linhes-live/etc/live-sysinit
index abab4a8..0a49ae1 100644
--- a/abs/core-testing/linhes-live/etc/live-sysinit
+++ b/abs/core-testing/linhes-live/etc/live-sysinit
@@ -52,3 +52,22 @@ f_swapon ()
status "Activating Swap" /sbin/swapon -a
fi
}
+f_loadmodules()
+{
+ CMDLINE=$(cat /proc/cmdline)
+ echo $CMDLINE | grep -q modules
+ if [ $? -eq 0 ]
+ then
+ TEMPVAR=${CMDLINE#*modules=}
+ CMDMODULES=${TEMPVAR%% *}
+ mymod=`echo $CMDMODULES|/bin/sed 's|-|_|g' |/bin/sed 's|,| |g'`
+ stat_busy "Loading CMD module"
+ for mod in $mymod
+ do
+ /sbin/modprobe $mod
+ done
+ stat_done
+ fi
+
+
+}