summaryrefslogtreecommitdiffstats
path: root/remote/modules/safe-mode
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/safe-mode')
-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