Skip to content

Commit

Permalink
Disable automatic udev rules for network interfaces in CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 committed Nov 24, 2015
1 parent f92f1e0 commit 78c7c31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/centos/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ fi

# Clean up network interface persistence
rm -f /etc/udev/rules.d/70-persistent-net.rules;
mkdir -p /etc/udev/rules.d/70-persistent-net.rules;
rm -f /lib/udev/rules.d/75-persistent-net-generator.rules;
rm -rf /dev/.udev/;

for ndev in `ls -1 /etc/sysconfig/network-scripts/ifcfg-*`; do
if [ "`basename $ndev`" != "ifcfg-lo" ]; then
Expand Down

0 comments on commit 78c7c31

Please sign in to comment.