mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-24 23:18:38 +02:00
Add a new script for LTE kits to toggle SIM slots
This commit is contained in:
parent
271f20c6a4
commit
2c3da90d81
1 changed files with 12 additions and 0 deletions
12
scripts/toggle-sim-slot
Normal file
12
scripts/toggle-sim-slot
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Applicable for RouterOS above 6.45.1
|
||||
# see https://wiki.mikrotik.com/wiki/Dual_SIM_Application#Initial_settings
|
||||
|
||||
:log "info" "SIM toggled by the script"
|
||||
|
||||
:local simSlot [/system routerboard modem get sim-slot]
|
||||
|
||||
:if ( $simSlot = "a" ) do={
|
||||
/system routerboard modem set sim-slot=b
|
||||
} else={
|
||||
/system routerboard modem set sim-slot=a
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue