diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-21 20:24:30 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-21 20:24:30 +0000 |
commit | 9a3b29b030646accdb163cc4787e025dfdabf770 (patch) | |
tree | b883f15841a901d05ef599ae201d791cdbc57c8c /rc.d/init.d | |
parent | e4291479f2a2a1146beacd61b68599e6e525f82f (diff) | |
download | initscripts-9a3b29b030646accdb163cc4787e025dfdabf770.tar initscripts-9a3b29b030646accdb163cc4787e025dfdabf770.tar.gz initscripts-9a3b29b030646accdb163cc4787e025dfdabf770.tar.bz2 initscripts-9a3b29b030646accdb163cc4787e025dfdabf770.tar.xz initscripts-9a3b29b030646accdb163cc4787e025dfdabf770.zip |
ignore backup files in /etc/sysconfig/network-scripts
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/network | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 374cb46c..3b3cf5f2 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -34,7 +34,8 @@ cd /etc/sysconfig/network-scripts # find all the interfaces besides loopback. # ignore aliases, alternative configurations, and editor backup files -interfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:)' | \ +interfaces=`ls ifcfg* | egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \ + egrep -v '(~|\.bak)$' \ egrep -v 'ifcfg-ippp[0-9]+$' | \ egrep 'ifcfg-[a-z0-9]+$' | \ sed 's/^ifcfg-//g'` |