Mageia Bugzilla – Attachment 370 Details for
Bug 1216
Latitude E6510 doesn't power off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
replace LANG with LC_ALL as sed won't work correctly without it
LANG2LC_ALL.patch (text/plain), 1.61 KB, created by
Sander Lepik
on 2011-05-09 12:27:55 CEST
(
hide
)
Description:
replace LANG with LC_ALL as sed won't work correctly without it
Filename:
MIME Type:
Creator:
Sander Lepik
Created:
2011-05-09 12:27:55 CEST
Size:
1.61 KB
patch
obsolete
>diff -uNr initscripts-9.21/mandriva/network-up initscripts-9.21p/mandriva/network-up >--- initscripts-9.21/mandriva/network-up 2011-05-09 12:50:59.096053021 +0300 >+++ initscripts-9.21p/mandriva/network-up 2011-05-09 13:12:54.892053252 +0300 >@@ -34,11 +34,11 @@ > # 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 -uNr initscripts-9.21/rc.d/init.d/network initscripts-9.21p/rc.d/init.d/network >--- initscripts-9.21/rc.d/init.d/network 2011-05-09 12:50:57.704053003 +0300 >+++ initscripts-9.21p/rc.d/init.d/network 2011-05-09 13:12:18.288053471 +0300 >@@ -52,11 +52,11 @@ > # 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.
diff -uNr initscripts-9.21/mandriva/network-up initscripts-9.21p/mandriva/network-up --- initscripts-9.21/mandriva/network-up 2011-05-09 12:50:59.096053021 +0300 +++ initscripts-9.21p/mandriva/network-up 2011-05-09 13:12:54.892053252 +0300 @@ -34,11 +34,11 @@ # 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 -uNr initscripts-9.21/rc.d/init.d/network initscripts-9.21p/rc.d/init.d/network --- initscripts-9.21/rc.d/init.d/network 2011-05-09 12:50:57.704053003 +0300 +++ initscripts-9.21p/rc.d/init.d/network 2011-05-09 13:12:18.288053471 +0300 @@ -52,11 +52,11 @@ # 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.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1216
:
367
|
368
| 370