mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-06-26 19:48:41 +02:00
final edit fixes
This commit is contained in:
parent
b10b99bd87
commit
f3beb2ed9b
41 changed files with 164 additions and 150 deletions
|
@ -3,12 +3,12 @@
|
|||
# define WAN interface name
|
||||
:local WanInterfaceName "ether1-WAN";
|
||||
|
||||
# find the interface index
|
||||
:local InterfaceIndex [/interface ethernet find name=$WanInterfaceName];
|
||||
# find the interface ID
|
||||
:local InterfaceId [/interface ethernet find name=$WanInterfaceName];
|
||||
|
||||
:local UpDown;
|
||||
|
||||
if ([:interface ethernet get $InterfaceIndex]->"running") do={
|
||||
if ([:interface ethernet get $InterfaceId]->"running") do={
|
||||
:set UpDown "up";
|
||||
} else={
|
||||
:set UpDown "down";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue