From 8060af952e1fa52d77b74b1282016fc95a66fafe Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 23 Apr 2014 16:17:08 +0400 Subject: [PATCH] =?UTF-8?q?ne=20mettre=20=C3=A0=20jour=20/etc/hosts=20que?= =?UTF-8?q?=20si=20l'on=20n'est=20pas=20en=20dhcp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ulib/debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ulib/debian b/ulib/debian index 4d2f8ca..5af08c5 100644 --- a/ulib/debian +++ b/ulib/debian @@ -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