Merge pull request #569 from LenzGr/master

use `hostname` for DHCP_HOSTNAME in ifcfg-eth0
This commit is contained in:
Stéphane Graber 2015-06-16 16:24:29 +02:00
commit ccb17e9f8a
3 changed files with 3 additions and 2 deletions

View File

@ -253,7 +253,7 @@ HOSTNAME=${UTSNAME}
NM_CONTROLLED=no
TYPE=Ethernet
MTU=${MTU}
DHCP_HOSTNAME=$name
DHCP_HOSTNAME=\`hostname\`
EOF
# set the hostname

View File

@ -226,6 +226,7 @@ DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HOSTNAME=${utsname}
DHCP_HOSTNAME=\`hostname\`
NM_CONTROLLED=no
TYPE=Ethernet
MTU=${MTU}

View File

@ -336,7 +336,7 @@ DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HOSTNAME=$name
DHCP_HOSTNAME=$name
DHCP_HOSTNAME=\`hostname\`
NM_CONTROLLED=no
TYPE=Ethernet
EOF