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 8e0e938
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/centos/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ 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;

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

0 comments on commit 8e0e938

Please sign in to comment.