Backup OpenWrt NUT Configuration & Scripts

This commit is contained in:
2026-02-07 20:42:15 +08:00
commit 1ef7c438dd
9 changed files with 160 additions and 0 deletions

23
nut-server Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh /etc/rc.common
START=50
USE_PROCD=1
restart() {
stop_service
start_service
}
start_service() {
upsdrvctl start
upsd
}
stop_service() {
upsd -c stop
upsdrvctl stop
}
reload_service() {
upsd -c reload
}