75203ba95f
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5611 504e572c-2e33-0410-9681-be2bf7408885
24 lines
547 B
Plaintext
24 lines
547 B
Plaintext
description "Force load of special Modules defined in /etc/sysconfig/loadmods"
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
version 1.0
|
|
emits none special
|
|
|
|
start on ( runlevel [06] and ( stopping udev )
|
|
|
|
pre-start script
|
|
echo "unload all modules"
|
|
source /etc/init/functions
|
|
Z=0
|
|
while [ $z -le 9 ]; do
|
|
exec 3</proc/modules
|
|
read <$3 MODNAME INFO
|
|
while [ $MODNAME ]; do
|
|
modprobe -r $MODNAME 2>/dev/null
|
|
status_message "$MODNAME unload..."
|
|
read <&3 MODNAME INFO
|
|
done
|
|
(( Z = $Z + 1 ))
|
|
exec 3>&-
|
|
done
|
|
end script
|