MT#11063 Sync with bootenv: [CARRIER] copy /etc/hosts into grml before restarting the network

This is needed to resolve web01 to the proper ip after restarting.
Before it was the boot_int IP (192.168.1.1) now it should be the
ha_int IP (X.X.X.X)

Change-Id: I78969321a09798084955d4d045676dbb83732865
changes/19/819/2
Victor Seva 11 years ago
parent b5d8ef7dfd
commit 7fd054ae46

@ -1327,6 +1327,8 @@ if "$RETRIEVE_MGMT_CONFIG" && "$RESTART_NETWORK" ; then
# should be able to make this as our only supported default mode and drop
# everything inside the 'else' statement...
if grep -q 'toram' /proc/cmdline || ! grep -q 'root=/dev/nfs' /proc/cmdline ; then
logit 'Set /etc/hosts from TARGET'
cp ${TARGET}/etc/hosts /etc/hosts
echo 'Restarting networking'
logit 'Restarting networking'
/etc/init.d/networking restart

Loading…
Cancel
Save