aboutsummaryrefslogtreecommitdiffstats
path: root/bridge-port-toggle
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-11-12 14:10:13 +0100
committerGravatar Christian Hesse <mail@eworm.de>2021-11-15 22:18:10 +0100
commitf484e45b6a1fe5284462da19c90219d0716d916a (patch)
tree5fae733f782467e6dd912dd1b40efeeafe9d6c88 /bridge-port-toggle
parentb6215ba95899328bd13fabbf6488b602763b9352 (diff)
bridge-port-to-default -> global-functions.d/bridge-port-tochange-66
Diffstat (limited to 'bridge-port-toggle')
-rw-r--r--bridge-port-toggle21
1 files changed, 0 insertions, 21 deletions
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 <mail@eworm.de>
-# 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;