0072a39b2b
I3166951c6fbb2faec53ffc339edd2fd0c3512300 recently landed without two fixes that I suggested, namely using rm -f rather than testing for file existance, and a comment fix. Change-Id: I68e187e20802f3482d4c524a6c435fec7526178e
14 lines
244 B
Bash
Executable File
14 lines
244 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Cloud images may hard code the eth0 interfaces so they
|
|
# boot with DHCP.
|
|
|
|
# Fedora
|
|
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0
|
|
|
|
# Ubuntu
|
|
rm -f /etc/network/interfaces.d/eth0.cfg
|
|
|
|
# Debian
|
|
rm -f /etc/network/interfaces.d/eth0
|