Untitled
public text v1 · immutable%post --interpreter=/bin/bash
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0
#echo "DEVICE=eth0" >> /etc/sysconfig/network-scripts/ifcfg-eth0
#echo "BOOTPROTO=dhcp" >> /etc/sysconfig/network-scripts/ifcfg-eth0
#echo "ONBOOT=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0
cat >> /etc/sysconfig/network-scripts/ifcfg-eth0 <<EOF
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=no
EOF