summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2015-06-05 17:08:57 +0200
committerJonathan Bauer2015-06-05 17:08:57 +0200
commitac4761e26a1d135a4367ff3b295503769f5a106d (patch)
tree003171a110443a45b0b4b783327c1b08a4d6d8f1 /remote
parent[firefox] removed option which was ignored anyway (diff)
parent[safe-mode] iptable rule only in eklausur mode (diff)
downloadtm-scripts-ac4761e26a1d135a4367ff3b295503769f5a106d.tar.gz
tm-scripts-ac4761e26a1d135a4367ff3b295503769f5a106d.tar.xz
tm-scripts-ac4761e26a1d135a4367ff3b295503769f5a106d.zip
Merge branch 'master' of 10.4.9.56:/root/tm-scripts
Diffstat (limited to 'remote')
-rwxr-xr-xremote/modules/safe-mode/data/opt/openslx/iptables/rules.d/00-internal-network5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote/modules/safe-mode/data/opt/openslx/iptables/rules.d/00-internal-network b/remote/modules/safe-mode/data/opt/openslx/iptables/rules.d/00-internal-network
index 1f29500b..a3a1b033 100755
--- a/remote/modules/safe-mode/data/opt/openslx/iptables/rules.d/00-internal-network
+++ b/remote/modules/safe-mode/data/opt/openslx/iptables/rules.d/00-internal-network
@@ -1,7 +1,10 @@
#!/bin/ash
-# identify subnet of br0's ip adress
. /opt/openslx/config
+
+[ -z "$SLX_BROWSER_START_URL" ] && exit 0
+
+# identify subnet of br0's ip adress
[ -z "$SLX_PXE_CLIENT_IP" ] && echo "No client IP found in '/opt/openslx/config'." && exit 1
# lets build the subnet string