summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2015-06-05 17:08:27 +0200
committerroot2015-06-05 17:08:27 +0200
commit6d3411abc053c9319a03e1925a42312ca05ee1d0 (patch)
tree2895f4c066a21813f2d05b500f4633699fd6d437 /remote
parent[safe-mode/firefox] e-klausur demo modules (diff)
downloadtm-scripts-6d3411abc053c9319a03e1925a42312ca05ee1d0.tar.gz
tm-scripts-6d3411abc053c9319a03e1925a42312ca05ee1d0.tar.xz
tm-scripts-6d3411abc053c9319a03e1925a42312ca05ee1d0.zip
[safe-mode] iptable rule only in eklausur mode
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