aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmandriva/network-up6
-rwxr-xr-xrc.d/init.d/network6
2 files changed, 6 insertions, 6 deletions
diff --git a/mandriva/network-up b/mandriva/network-up
index abd6969f..92988936 100755
--- a/mandriva/network-up
+++ b/mandriva/network-up
@@ -34,11 +34,11 @@ 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 "$__sed_discard_ignored_files" \
+ 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]/ &/}' | \
- LANG=C sort -k 1,1 -k 2n | \
- LANG=C sed 's/ //')
+ LC_ALL=C sort -k 1,1 -k 2n | \
+ LC_ALL=C sed 's/ //')
function may_have_link() {
local DEVICE=$1
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index c10f5504..dd4fcb8e 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -52,11 +52,11 @@ 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 "$__sed_discard_ignored_files" \
+ 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]/ &/}' | \
- LANG=C sort -k 1,1 -k 2n | \
- LANG=C sed 's/ //')
+ LC_ALL=C sort -k 1,1 -k 2n | \
+ LC_ALL=C sed 's/ //')
rc=0
# See how we were called.