From 6ee60b0ad6cfccbf168a197914115b4a0572c2eb Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Mon, 14 Apr 2014 18:47:56 +0200 Subject: [beamergui] Dynamically get ips for the config :D --- .../modules/beamergui/data/opt/openslx/scripts/beamergui-mode_setter | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'remote/modules') 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 -- cgit v1.2.3-55-g7522