Fixed stop/start autodev

pull/5/head
xSmurf 9 years ago
parent 8b186dd1b9
commit dbed429e92

@ -3,17 +3,30 @@
# Start autodev # Start autodev
# #
case "$1" in do_start() {
start)
echo "Starting module autoload..." echo "Starting module autoload..."
echo /opt/sbin/autoload_modules > /proc/sys/kernel/hotplug
/opt/sbin/autoload_modules /opt/sbin/autoload_modules
}
do_stop() {
echo > /proc/sys/kernel/hotplug
}
case "$1" in
start)
do_start;
;; ;;
stop) stop)
do_stop;
;; ;;
restart|reload) restart|reload)
do_stop;
sleep 2;
do_start;
;; ;;
*) *)
echo "Usage: $0 {start}" echo "Usage: $0 {start|restart|stop}"
exit 1 exit 1
esac esac

Loading…
Cancel
Save