summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/qemukvm/init-hooks/60-have-servconfig/vm-dhcpd.sh
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-02-28 22:27:21 +0100
committerSebastian Schmelzer2011-02-28 22:27:21 +0100
commita46615b6421cb6d73654618ae0600dc84d3dceac (patch)
treecc43a3097c43c7a8332d57fe9443d80a79de9c68 /src/os-plugins/plugins/qemukvm/init-hooks/60-have-servconfig/vm-dhcpd.sh
parentadd compcache tools to default rootfs (diff)
parentFixing missing quotes bug ... (diff)
downloadcore-a46615b6421cb6d73654618ae0600dc84d3dceac.tar.gz
core-a46615b6421cb6d73654618ae0600dc84d3dceac.tar.xz
core-a46615b6421cb6d73654618ae0600dc84d3dceac.zip
Merge branch 'stable' of openslx.org:openslx/core into stable
Diffstat (limited to 'src/os-plugins/plugins/qemukvm/init-hooks/60-have-servconfig/vm-dhcpd.sh')
-rwxr-xr-xsrc/os-plugins/plugins/qemukvm/init-hooks/60-have-servconfig/vm-dhcpd.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os-plugins/plugins/qemukvm/init-hooks/60-have-servconfig/vm-dhcpd.sh b/src/os-plugins/plugins/qemukvm/init-hooks/60-have-servconfig/vm-dhcpd.sh
index b4f02389..8f0aedff 100755
--- a/src/os-plugins/plugins/qemukvm/init-hooks/60-have-servconfig/vm-dhcpd.sh
+++ b/src/os-plugins/plugins/qemukvm/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