|
@@ -18,9 +18,6 @@ then
|
|
|
echo "Configure GRUB"
|
|
|
sed -i 's/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"net.ifnames=0 /' /etc/default/grub
|
|
|
grub2-mkconfig -o $(find /boot -name grub.cfg)
|
|
|
- mv /etc/sysconfig/network-scripts/ifcfg* /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
|
- sed -i 's/NAME=.*/NAME=eth0/' /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
|
- sed -i 's/DEVICE=.*/DEVICE=eth0/' /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
|
else
|
|
|
echo "GRUB configuration not required"
|
|
|
fi
|