aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-02-03 01:57:12 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-02-03 01:57:12 +0000
commit73a417cb8e453d8b84d682808fffb1d8a1e566eb (patch)
tree26bef9543e09a2e0d9ca31cd01d76cf1af66c6de /rc.d
parent81ce4ad6f1f1266c0971003d7358d50eb3cb769e (diff)
downloadinitscripts-73a417cb8e453d8b84d682808fffb1d8a1e566eb.tar
initscripts-73a417cb8e453d8b84d682808fffb1d8a1e566eb.tar.gz
initscripts-73a417cb8e453d8b84d682808fffb1d8a1e566eb.tar.bz2
initscripts-73a417cb8e453d8b84d682808fffb1d8a1e566eb.tar.xz
initscripts-73a417cb8e453d8b84d682808fffb1d8a1e566eb.zip
Ignore alias range files (#150336)
Diffstat (limited to 'rc.d')
-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 579372ca..943b7798 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -44,7 +44,8 @@ cd /etc/sysconfig/network-scripts
# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=`ls ifcfg* | \
- LANG=C sed -e '/\(ifcfg-lo\|rpmsave\|:\|rpmorig\|rpmnew\)/d' \
+ LANG=C sed -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d' \
+ -e '/\(rpmsave\|rpmorig\|rpmnew\)/d' \
-e '/\(~\|\.bak\)$/d' \
-e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
LANG=C sort -k 1,1 -k 2n | \