final edit fixes

This commit is contained in:
Wifinigel 2023-02-19 13:53:15 +00:00
parent b10b99bd87
commit f3beb2ed9b
41 changed files with 164 additions and 150 deletions

View file

@ -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";