initial commit

This commit is contained in:
Wifinigel 2023-01-19 21:27:15 +00:00
commit c782dde326
61 changed files with 1457 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# filename: ch7-08-if-else-binary.rsc
# define WAN interface name
:local WanInterfaceName "ether1-WAN";
# find the interface index
:local InterfaceIndex [/interface ethernet find name=$WanInterfaceName];
:local UpDown;
if ([:interface ethernet get $InterfaceIndex]->"running") do={
:set UpDown "up"
} else={
:set UpDown "down"
}
:put "Interface $WanInterfaceName is currently $UpDown";