1

Add original scripts

This commit is contained in:
eleksir
2016-09-04 22:20:40 +03:00
commit 8e3af042d2
128 changed files with 19003 additions and 0 deletions

24
ups.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
case "$1" in
start)
# Start daemons.
UPS_DRV=`/sbin/getcfg qnapups driver -d "" -f /etc/config/ups/ups.conf`
/etc/init.d/usb_ups.sh start "$UPS_DRV"
/etc/init.d/snmp_ups.sh start
;;
stop)
# Stop daemons.
/etc/init.d/usb_ups.sh stop
/etc/init.d/snmp_ups.sh stop
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac