Commit ccb17e9f by Stéphane Graber

Merge pull request #569 from LenzGr/master

use `hostname` for DHCP_HOSTNAME in ifcfg-eth0
parents 60978799 7e1a946f
...@@ -253,7 +253,7 @@ HOSTNAME=${UTSNAME} ...@@ -253,7 +253,7 @@ HOSTNAME=${UTSNAME}
NM_CONTROLLED=no NM_CONTROLLED=no
TYPE=Ethernet TYPE=Ethernet
MTU=${MTU} MTU=${MTU}
DHCP_HOSTNAME=$name DHCP_HOSTNAME=\`hostname\`
EOF EOF
# set the hostname # set the hostname
......
...@@ -226,6 +226,7 @@ DEVICE=eth0 ...@@ -226,6 +226,7 @@ DEVICE=eth0
BOOTPROTO=dhcp BOOTPROTO=dhcp
ONBOOT=yes ONBOOT=yes
HOSTNAME=${utsname} HOSTNAME=${utsname}
DHCP_HOSTNAME=\`hostname\`
NM_CONTROLLED=no NM_CONTROLLED=no
TYPE=Ethernet TYPE=Ethernet
MTU=${MTU} MTU=${MTU}
......
...@@ -336,7 +336,7 @@ DEVICE=eth0 ...@@ -336,7 +336,7 @@ DEVICE=eth0
BOOTPROTO=dhcp BOOTPROTO=dhcp
ONBOOT=yes ONBOOT=yes
HOSTNAME=$name HOSTNAME=$name
DHCP_HOSTNAME=$name DHCP_HOSTNAME=\`hostname\`
NM_CONTROLLED=no NM_CONTROLLED=no
TYPE=Ethernet TYPE=Ethernet
EOF EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment