From a28a3f03b42377f50ab46fd669bc93b287c20b11 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 30 Sep 2011 10:52:05 -0400 Subject: Be less picky about ifcfg file names. (#742276) --- rc.d/init.d/network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index b3dbe7a6..c6b86c37 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -43,10 +43,10 @@ cd /etc/sysconfig/network-scripts # find all the interfaces besides loopback. # ignore aliases, alternative configurations, and editor backup files -interfaces=$(ls ifcfg* | \ +interfaces=$(ls ifcfg-* | \ LC_ALL=C sed -e "$__sed_discard_ignored_files" \ -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \ - -e '/ifcfg-[A-Za-z0-9#\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \ + -e '{ s/^ifcfg-//g;s/[0-9]/ &/}' | \ LC_ALL=C sort -k 1,1 -k 2n | \ LC_ALL=C sed 's/ //') rc=0 -- cgit v1.2.1