b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | uci batch <<EOF | ||||
4 | set nut_monitor.@upsmon[-1]=upsmon | ||||
5 | set nut_monitor.@upsmon[-1].notifycmd=/usr/bin/upssched-cmd | ||||
6 | set nut_monitor.@upsmon[-1].defaultnotify="SYSLOG EXEC" | ||||
7 | commit nut_monitor | ||||
8 | EOF | ||||
9 | |||||
10 |