ne mettre à jour /etc/hosts que si l'on n'est pas en dhcp

This commit is contained in:
Jephté Clain 2014-04-23 16:17:08 +04:00
parent 1fe78fe78f
commit 8060af952e
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ iface lo inet loopback
network_fix_hostname "$host"
network_fix_mailname "$host"
network_fix_hosts "$host" "$mainip" "$oldhost"
[ -n "$mainip" ] && network_fix_hosts "$host" "$mainip" "$oldhost"
eend
fi