I am trying to create a custom template for /etc/dhcpd.conf with "{" in the fragment. When I expand the template everything inside the fragments is removed.
Here is the fragment code;
#Start vmware subnets
subnet 172.16.180.0 netmask 255.255.255.0 {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
}
subnet 192.168.2.0 netmask 255.255.255.0 {
# Note: No range is given, vmnet-dhcpd will deal with this subnet.
}
#End vmware subnets
When I execute:
expand-template /etc/dhcpd.conf
The resulting /etc/dhcpd.conf looks like this:
#Start vmware subnets
subnet 172.16.180.0 netmask 255.255.255.0
subnet 192.168.2.0 netmask 255.255.255.0
#End vmware subnets
How might I get the template to expand with out executing what is inside the brackets in the fragment?
Thanks,
Rick Evans