ne mettre à jour /etc/hosts que si l'on n'est pas en dhcp
This commit is contained in:
parent
1fe78fe78f
commit
8060af952e
|
@ -1094,7 +1094,7 @@ iface lo inet loopback
|
||||||
|
|
||||||
network_fix_hostname "$host"
|
network_fix_hostname "$host"
|
||||||
network_fix_mailname "$host"
|
network_fix_mailname "$host"
|
||||||
network_fix_hosts "$host" "$mainip" "$oldhost"
|
[ -n "$mainip" ] && network_fix_hosts "$host" "$mainip" "$oldhost"
|
||||||
|
|
||||||
eend
|
eend
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue