0a797c86de
Moves the code that removes default cloud interfaces into the dhcp-all-interfaces element. Having it live in stable-interface-names won't work right now because we need this for virtualized testing. Change-Id: I3166951c6fbb2faec53ffc339edd2fd0c3512300
16 lines
331 B
Bash
Executable file
16 lines
331 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Cloud images may hard code the eth0 interfaces so they
|
|
# boots w/ DHCP.
|
|
|
|
# Fedora
|
|
IFCFG_NETSCRIPT="/etc/sysconfig/network-scripts/ifcfg-eth0"
|
|
if [ -f $IFCFG_NETSCRIPT ]; then
|
|
rm $IFCFG_NETSCRIPT
|
|
fi
|
|
|
|
# Ubuntu
|
|
ENI_ETH0_CFG="/etc/network/interfaces.d/eth0.cfg"
|
|
if [ -f $ENI_ETH0_CFG ]; then
|
|
rm $ENI_ETH0_CFG
|
|
fi
|