* Add files via upload * Add files via upload * Add OpenWrt auto-start and shortcut script instructions, Optimize file link reference method. * add more detailed instructions. * Add files via upload
29 lines
585 B
Bash
29 lines
585 B
Bash
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
/etc/init.d/saveanybot start
|
|
;;
|
|
stop)
|
|
/etc/init.d/saveanybot stop
|
|
;;
|
|
restart)
|
|
/etc/init.d/saveanybot restart
|
|
;;
|
|
status)
|
|
/etc/init.d/saveanybot status
|
|
;;
|
|
enable)
|
|
/etc/init.d/saveanybot enable
|
|
echo "Enable SaveAnyBot auto-start."
|
|
;;
|
|
disable)
|
|
/etc/init.d/saveanybot disable
|
|
echo "Disable SaveAnyBot auto-start."
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart|status|enable|disable}"
|
|
exit 1
|
|
;;
|
|
esac
|