aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-21 20:24:30 +0000
committerBill Nottingham <notting@redhat.com>2001-01-21 20:24:30 +0000
commit9a3b29b030646accdb163cc4787e025dfdabf770 (patch)
treeb883f15841a901d05ef599ae201d791cdbc57c8c /rc.d/init.d/network
parente4291479f2a2a1146beacd61b68599e6e525f82f (diff)
downloadinitscripts-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/network')
-rwxr-xr-xrc.d/init.d/network3
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'`