Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 372314 Details for
Bug 373219
provide alternative for /etc/init.d/functions.sh so that openrc is not required
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proper colors
functions.patch (text/plain), 774 bytes, created by
Kirill Elagin
on 2014-03-10 20:05:33 UTC
(
hide
)
Description:
Proper colors
Filename:
MIME Type:
Creator:
Kirill Elagin
Created:
2014-03-10 20:05:33 UTC
Size:
774 bytes
patch
obsolete
>diff --git a/functions_orig.sh b/functions.sh >index 6f61caf..bc72423 100644 >--- a/functions_orig.sh >+++ b/functions.sh >@@ -452,12 +452,21 @@ fi > if yesno "${RC_NOCOLOR}"; then > unset GOOD WARN BAD NORMAL HILITE BRACKET > else >- GOOD='\033[32;01m' >- WARN='\033[33;01m' >- BAD='\033[31;01m' >- HILITE='\033[36;01m' >- BRACKET='\033[34;01m' >- NORMAL='\033[0m' >+ if type tput >/dev/null 2>&1; then >+ GOOD="$(tput bold)$(tput setaf 2)" >+ WARN="$(tput bold)$(tput setaf 3)" >+ BAD="$(tput bold)$(tput setaf 1)" >+ HILITE="$(tput bold)$(tput setaf 6)" >+ BRACKET="$(tput bold)$(tput setaf 4)" >+ NORMAL="$(tput sgr0)" >+ else >+ GOOD='\033[32;01m' >+ WARN='\033[33;01m' >+ BAD='\033[31;01m' >+ HILITE='\033[36;01m' >+ BRACKET='\033[34;01m' >+ NORMAL='\033[0m' >+ fi > fi > > # vim:ts=4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 373219
:
278393
|
278537
|
278625
|
278635
|
278645
|
278999
|
303775
|
364774
|
367476
|
367478
|
367480
|
367482
|
368936
|
371754
|
371834
|
371842
|
372314
|
372318