From f484e45b6a1fe5284462da19c90219d0716d916a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 12 Nov 2021 14:10:13 +0100 Subject: bridge-port-to-default -> global-functions.d/bridge-port-to --- bridge-port-toggle | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 bridge-port-toggle (limited to 'bridge-port-toggle') diff --git a/bridge-port-toggle b/bridge-port-toggle deleted file mode 100644 index 9eeab35..0000000 --- a/bridge-port-toggle +++ /dev/null @@ -1,21 +0,0 @@ -#!rsc by RouterOS -# RouterOS script: bridge-port-toggle -# Copyright (c) 2013-2021 Christian Hesse -# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md -# -# toggle bridge ports between default and alt bridge -# https://git.eworm.de/cgit/routeros-scripts/about/doc/bridge-port.md - -:local 0 "bridge-port-toggle"; -:global GlobalFunctionsReady; -:while ($GlobalFunctionsReady != true) do={ :delay 500ms; } - -:global BridgePortTo; - -:if ($BridgePortTo != "default") do={ - :set BridgePortTo "default"; -} else={ - :set BridgePortTo "alt"; -} - -/ system script run bridge-port-to-default; -- cgit v1.2.3-70-g09d2