aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-09-04 02:53:10 +0000
committerBill Nottingham <notting@redhat.com>2003-09-04 02:53:10 +0000
commitb70b029e71dd36de95b8d424e68f96efec7eb408 (patch)
tree75082d7c166724ef8a62062b3c829574ba628b51 /rc.d/init.d
parent2b703d9f532e61f7b25e1d6f635477c840956386 (diff)
downloadinitscripts-b70b029e71dd36de95b8d424e68f96efec7eb408.tar
initscripts-b70b029e71dd36de95b8d424e68f96efec7eb408.tar.gz
initscripts-b70b029e71dd36de95b8d424e68f96efec7eb408.tar.bz2
initscripts-b70b029e71dd36de95b8d424e68f96efec7eb408.tar.xz
initscripts-b70b029e71dd36de95b8d424e68f96efec7eb408.zip
handle sorting > 10 network devices (#98209)
Diffstat (limited to 'rc.d/init.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 eddf168e..0c0e2894 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -54,7 +54,8 @@ cd /etc/sysconfig/network-scripts
interfaces=`ls ifcfg* | LANG=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
LANG=C egrep -v '(~|\.bak)$' | \
LANG=C egrep 'ifcfg-[A-Za-z0-9\._-]+$' | \
- sed 's/^ifcfg-//g'`
+ sed 's/^ifcfg-//g' |
+ sed 's/[0-9]/ &/' | LANG=C sort -k 1,1 -k 2n | sed 's/ //'`
# See how we were called.
case "$1" in