mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-25 11:08:38 +02:00
27 lines
496 B
Text
27 lines
496 B
Text
|
# RouterOS script: sms-action
|
||
|
# Copyright (c) 2018 Christian Hesse <mail@eworm.de>
|
||
|
#
|
||
|
# run action on received SMS
|
||
|
|
||
|
:log info ("Received SMS with action '" . $action . "'");
|
||
|
|
||
|
:if ($action = "reboot") do={
|
||
|
/ system reboot;
|
||
|
}
|
||
|
|
||
|
:if ($action = "shutdown") do={
|
||
|
/ system shutdown;
|
||
|
}
|
||
|
|
||
|
:if ($action = "update") do={
|
||
|
/ system package update install;
|
||
|
}
|
||
|
|
||
|
:if ($action= "trackon") do={
|
||
|
/ system scheduler enable gps-track;
|
||
|
}
|
||
|
|
||
|
:if ($action = "trackoff") do={
|
||
|
/ system scheduler disable gps-track;
|
||
|
}
|