summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2011-02-28 21:59:25 +0100
committerDirk von Suchodoletz2011-02-28 21:59:25 +0100
commit096cb7ab9331abfa0cba7c1358ce52e06fc295b8 (patch)
treea19c53ed01face9cfb5c02fa0e4138df90b8e0d3 /src/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh
parentFill variables for stuff to remove after virtual machine session and (diff)
downloadcore-096cb7ab9331abfa0cba7c1358ce52e06fc295b8.tar.gz
core-096cb7ab9331abfa0cba7c1358ce52e06fc295b8.tar.xz
core-096cb7ab9331abfa0cba7c1358ce52e06fc295b8.zip
Fix the udhcpd.conf generation ...
Diffstat (limited to 'src/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh')
-rwxr-xr-xsrc/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh b/src/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh
index b4f02389..06aa8700 100755
--- a/src/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh
+++ b/src/os-plugins/plugins/vmware/init-hooks/60-have-servconfig/vm-dhcpd.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# Copyright (c) 2010 - OpenSLX GmbH
+# Copyright (c) 2010,2011 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -18,6 +18,10 @@
CONFDIR=/mnt/${OPENSLX_DEFAULT_CONFDIR}
testmkd ${CONFDIR}
+# read the DNS configuration
+. /mnt/etc/machine-setup
+[ -z ${domain_name_servers} ] && domain_name_servers="8.8.8.8"
+
# configuring dhcpd stub for virtual networks
cat > ${CONFDIR}/udhcpd.conf << EOF
# general udhcpd configuration file for virtual machines written by