summaryrefslogtreecommitdiffstats
path: root/remote/modules/beamergui
diff options
context:
space:
mode:
authorJonathan Bauer2014-04-14 19:01:23 +0200
committerJonathan Bauer2014-04-14 19:01:23 +0200
commit0d939fc97bde1d719cecc76ec3404e8e8c8f52f5 (patch)
treeeb1a710c776c3954ca361807068202b798ef526a /remote/modules/beamergui
parentadded include for selecting qt version (diff)
parent[beamergui] Dynamically get ips for the config :D (diff)
downloadtm-scripts-0d939fc97bde1d719cecc76ec3404e8e8c8f52f5.tar.gz
tm-scripts-0d939fc97bde1d719cecc76ec3404e8e8c8f52f5.tar.xz
tm-scripts-0d939fc97bde1d719cecc76ec3404e8e8c8f52f5.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/beamergui')
-rwxr-xr-xremote/modules/beamergui/data/opt/openslx/scripts/beamergui-mode_setter5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote/modules/beamergui/data/opt/openslx/scripts/beamergui-mode_setter b/remote/modules/beamergui/data/opt/openslx/scripts/beamergui-mode_setter
index 3d45550c..0ee6e274 100755
--- a/remote/modules/beamergui/data/opt/openslx/scripts/beamergui-mode_setter
+++ b/remote/modules/beamergui/data/opt/openslx/scripts/beamergui-mode_setter
@@ -113,8 +113,11 @@ if [ ${#OUTPUTNAMES[@]} -eq 2 ]; then
echo "Config file found."
+ # Get local ip
+ . /opt/openslx/config
+
# Try to get a probed mode
- PROBEDMODE=$(cat $CONFIGFILE | awk -F "=" '/132.230.4.156/ {print $2}')
+ PROBEDMODE=$(cat $CONFIGFILE | grep $SLX_PXE_CLIENT_IP | cut -d '=' -f2)
# If a probed mode was found, ..
if [[ -n "$PROBEDMODE" ]]; then