Files
H1502_iostate/S11iostate
Martijn Scheepers fa9429c86c changed init script
2017-09-28 15:12:49 +02:00

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 $?