Don't write a dns directive if there are no dns records in /etc/network/interfaces

Change-Id: I26e22f37f91bf242aa573c91b26b2304fdd25751
This commit is contained in:
Justin Santa Barbara 2012-02-05 19:51:17 -08:00
parent e9fd01e58b
commit 1a32aad3a6
1 changed files with 2 additions and 0 deletions

View File

@ -14,7 +14,9 @@ iface ${ifc.name} inet static
netmask ${ifc.netmask}
broadcast ${ifc.broadcast}
gateway ${ifc.gateway}
#if $ifc.dns
dns-nameservers ${ifc.dns}
#end if
#if $use_ipv6
iface ${ifc.name} inet6 static