From 6d3411abc053c9319a03e1925a42312ca05ee1d0 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 5 Jun 2015 17:08:27 +0200 Subject: [safe-mode] iptable rule only in eklausur mode --- .../safe-mode/data/opt/openslx/iptables/rules.d/00-internal-network | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'remote') 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 -- cgit v1.2.3-55-g7522