summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmplayer/data
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/vmplayer/data')
-rwxr-xr-xremote/modules/vmplayer/data/etc/openslx/vmware/vmware-env7
1 files changed, 7 insertions, 0 deletions
diff --git a/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env b/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env
index d35e7635..feff5135 100755
--- a/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env
+++ b/remote/modules/vmplayer/data/etc/openslx/vmware/vmware-env
@@ -14,6 +14,13 @@ export PATH=$PATH:/opt/openslx/bin:/opt/openslx/sbin:/opt/openslx/usr/bin:/opt/o
VMWARE_CONF_DIR=/etc/openslx/vmware
+for wait in 1 1 2 2 3 end; do
+ grep '^SLX_DNS' /opt/openslx/config > /dev/null && break
+ [ "$wait" == "end" ] && echo "No DNS config found, using google dns" && break
+ echo "Waiting for DNS config.."
+ sleep "$wait"
+done
+
#source config file
. /opt/openslx/config
. ${VMWARE_CONF_DIR}/vmware.conf