diff options
author | Manuel Schneider | 2014-04-14 18:47:56 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-04-14 18:47:56 +0200 |
commit | 6ee60b0ad6cfccbf168a197914115b4a0572c2eb (patch) | |
tree | b89d259621a442f6198d9402080b0d657719fecb /remote/modules/beamergui | |
parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
download | tm-scripts-6ee60b0ad6cfccbf168a197914115b4a0572c2eb.tar.gz tm-scripts-6ee60b0ad6cfccbf168a197914115b4a0572c2eb.tar.xz tm-scripts-6ee60b0ad6cfccbf168a197914115b4a0572c2eb.zip |
[beamergui] Dynamically get ips for the config :D
Diffstat (limited to 'remote/modules/beamergui')
-rwxr-xr-x | remote/modules/beamergui/data/opt/openslx/scripts/beamergui-mode_setter | 5 |
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 |