added -f FORCE option, to override the do not touch in configs
[grml-terminalserver.git] / templates / dhcpd_config
index 56badbc..40b784a 100644 (file)
@@ -28,6 +28,12 @@ date_=`execute date warn`
 cat >"$DHCPD_CONFIG_FILE_" <<EOT
 # ${DHCPD_CONFIG_FILE_##/*/} for GRML terminalserver
 # created on $date_
+# THIS IS A GENERATED CONFIG FROM GRML-TERMINALSERVER, DO NOT EDIT!!!
+# better adapt $TEMPLATE_CONFIG_DIR_/dhcpd_config to your needs and update config
+# with grml-terminalserver config dhcp
+#
+# If you really want to edit _this_ file remove the next line
+# __PLEASE_UPDATE_THIS_FILE__
 
 # global settings
 allow booting;
@@ -37,7 +43,7 @@ allow bootp;
 default-lease-time 600;
 max-lease-time 7200;
 
-subnet ${IP_%.*}.0 netmask $NETMASK_ {
+subnet $NETWORK_ netmask $NETMASK_ {
   next-server $IP_;
   if substring (option vendor-class-identifier, 0, 9) = "Etherboot" { filename "etherboot.nbi"; }
   else { filename "pxelinux.0"; }