Skip to content

Commit b09b1c4

Browse files
Update Mikrotik.sh
Upsname to variable
1 parent 58d4e48 commit b09b1c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Mikrotik/Mikrotik.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
:local bottoken "<bottoken>"
22
:local chatid "<chatid>"
3+
:local upsname "ups1"
34

45
:global flagonbatt;
56

@@ -10,7 +11,7 @@
1011
:set flagonbatt 0
1112
}
1213

13-
/system ups monitor ups1 once do={
14+
/system ups monitor $upsname once do={
1415
:set online $"on-line";
1516
}
1617

0 commit comments

Comments
 (0)