diff options
author | Jonathan Bauer | 2015-06-05 17:08:27 +0200 |
---|---|---|
committer | root | 2015-06-05 17:08:27 +0200 |
commit | 6d3411abc053c9319a03e1925a42312ca05ee1d0 (patch) | |
tree | 2895f4c066a21813f2d05b500f4633699fd6d437 /remote | |
parent | [safe-mode/firefox] e-klausur demo modules (diff) | |
download | tm-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-x | remote/modules/safe-mode/data/opt/openslx/iptables/rules.d/00-internal-network | 5 |
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 |