mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 08:40:55 +08:00
11 lines
203 B
Bash
11 lines
203 B
Bash
#!/bin/sh
|
|
|
|
uci batch <<EOF
|
|
set nut_monitor.@upsmon[-1]=upsmon
|
|
set nut_monitor.@upsmon[-1].notifycmd=/usr/bin/upssched-cmd
|
|
set nut_monitor.@upsmon[-1].defaultnotify="SYSLOG EXEC"
|
|
commit nut_monitor
|
|
EOF
|
|
|
|
|