projects
/
grml-terminalserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4852226
)
applied patch by Wolfgang Karall, support Gateway + Nameserver via /usr/share/grml...
author
Michael Prokop
<mika@grml.org>
Thu, 2 Nov 2006 14:59:57 +0000
(15:59 +0100)
committer
Michael Prokop
<mika@grml.org>
Thu, 2 Nov 2006 14:59:57 +0000
(15:59 +0100)
templates/dhcpd_config
patch
|
blob
|
history
diff --git
a/templates/dhcpd_config
b/templates/dhcpd_config
index
40b784a
..
cb5c6f2
100644
(file)
--- a/
templates/dhcpd_config
+++ b/
templates/dhcpd_config
@@
-25,6
+25,10
@@
date_=`execute date warn`
date_=`execute date warn`
+# insert commas when having multiple nameservers
+DNS_=$(echo "$NAMESERVERS_" | sed -e 's/\([0-9]\) \([0-9]\)/\1, \2/g')
+# note: we don't support multiple routers options
+
cat >"$DHCPD_CONFIG_FILE_" <<EOT
# ${DHCPD_CONFIG_FILE_##/*/} for GRML terminalserver
# created on $date_
cat >"$DHCPD_CONFIG_FILE_" <<EOT
# ${DHCPD_CONFIG_FILE_##/*/} for GRML terminalserver
# created on $date_
@@
-49,6
+53,8
@@
subnet $NETWORK_ netmask $NETMASK_ {
else { filename "pxelinux.0"; }
# option subnet-mask $NETMASK_;
range $IPRANGE_FROM_ $IPRANGE_TO_;
else { filename "pxelinux.0"; }
# option subnet-mask $NETMASK_;
range $IPRANGE_FROM_ $IPRANGE_TO_;
+ option routers $GW_;
+ option domain-name-servers $DNS_;
# option T150 "/menu.lst";
# option option-150 "(nd)/menu.lst";
}
# option T150 "/menu.lst";
# option option-150 "(nd)/menu.lst";
}