38 lines
423 B
Bash
Executable File
38 lines
423 B
Bash
Executable File
#! /bin/sh
|
|
# /etc/init.d/S11iostate
|
|
|
|
start(){
|
|
echo "Starting iostate:"
|
|
insmod /lib/modules/$(uname -r)/extra/h1502iostate.ko
|
|
echo "OK"
|
|
}
|
|
|
|
stop(){
|
|
echo "Stopping iostate:"
|
|
rmmod h1502iostate
|
|
echo "OK"
|
|
}
|
|
|
|
restart(){
|
|
stop
|
|
start
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart|reload)
|
|
restart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit $?
|