summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-09-04 02:56:27 +0000
committerBill Nottingham <notting@redhat.com>2003-09-04 02:56:27 +0000
commit262cb747df007ffeb673bc4aefc77664f4fe4fb5 (patch)
tree918df64d93e1a70070c79e96a41cc1f65c4c24a2
parent373493d3d8478cf5e5c2936df986dd0c046213e3 (diff)
downloadinitscripts-262cb747df007ffeb673bc4aefc77664f4fe4fb5.tar.gz
initscripts-262cb747df007ffeb673bc4aefc77664f4fe4fb5.tar.xz
initscripts-262cb747df007ffeb673bc4aefc77664f4fe4fb5.zip
handle sorting > 10 network devices (#98209)
-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 53f8fb41..d47006d1 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -51,7 +51,8 @@ interfaces=`ls ifcfg* | LANG=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' |
LANG=C egrep -v '(~|\.bak)$' | \
LANG=C egrep -v 'ifcfg-cipcb[0-9]+$' | \
LANG=C egrep 'ifcfg-[a-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