diff --git a/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces b/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces index 6d5cf730..58864e60 100755 --- a/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces +++ b/elements/dhcp-all-interfaces/install.d/60-remove-cloud-image-interfaces @@ -1,16 +1,13 @@ #!/bin/bash # Cloud images may hard code the eth0 interfaces so they -# boots w/ DHCP. +# boot with DHCP. # Fedora -IFCFG_NETSCRIPT="/etc/sysconfig/network-scripts/ifcfg-eth0" -if [ -f $IFCFG_NETSCRIPT ]; then - rm $IFCFG_NETSCRIPT -fi +rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 # Ubuntu -ENI_ETH0_CFG="/etc/network/interfaces.d/eth0.cfg" -if [ -f $ENI_ETH0_CFG ]; then - rm $ENI_ETH0_CFG -fi +rm -f /etc/network/interfaces.d/eth0.cfg + +# Debian +rm -f /etc/network/interfaces.d/eth0