X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=templates%2Fdhcpd_config;h=2b847c7c1ef37692949a67ceded8e6f23beb5b08;hb=cb91c41fae1f12087ea2426ce6e0381b26fb7331;hp=40b784a0a9a111693800b6dcb170aa27f68d9003;hpb=a1989990540702f98cc5ab7f1fc693fea2d74a0f;p=grml-terminalserver.git diff --git a/templates/dhcpd_config b/templates/dhcpd_config index 40b784a..2b847c7 100644 --- a/templates/dhcpd_config +++ b/templates/dhcpd_config @@ -1,5 +1,3 @@ -#!/bin/sh i like colors :) -# # the following variables are available in the template: # # $INTERFACE_ (interface for the terminalserver) @@ -25,6 +23,10 @@ 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_" <