## To fix issues with udev on startup
#!/bin/sh
set -x
if [ x$1 == x"postcustomization" ]; then
rm -rf /etc/udev/rules.d/70-persistent-net.rules
sed -i “s/eth1/eth0/g” /etc/sysconfig/network
mv -f /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i “s/eth1/eth0/g” /etc/sysconfig/network-scripts/ifcfg-eth0
/etc/rc.d/init.d/network restart
fi