1 diff -urN rc-scripts-0.4.0.9-orig/rc.d/init.d/functions rc-scripts-0.4.0.9/rc.d/init.d/functions
2 --- rc-scripts-0.4.0.9-orig/rc.d/init.d/functions 2004-02-06 23:36:29.000000000 +0100
3 +++ rc-scripts-0.4.0.9/rc.d/init.d/functions 2004-04-27 22:21:37.842160272 +0200
5 # Marek Obuchowicz <elephant@pld-linux.org>
6 # Arkadiusz Mi¶kiewicz <misiek@pld-linux.org>
7 # Micha³ Kochanowicz <mkochano@pld-linux.org>
8 +# £ukasz Pawelczyk <havner@pld-linux.org>
10 # First set up a default search path.
11 export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
25 +# Bold definition (second parameter to termput setaf)
29 +CBRACKETS="$CYAN" # brackets [ ] color
30 +CDONE="$GREEN" # DONE and WORK color
31 +CBUSY="$MAGENTA" # BUSY color
32 +CFAIL="$RED" # FAIL and DIED color
33 +CPOWEREDBY="$CYAN" # "Powered by" color
34 +CPLD="$GREEN" # "PLD Linux Distribution" color
35 +CI="$RED" # Capital I color (press I to enter interactive startup)
36 +CRESMAN="$GREEN" # "Resource Manager" color
37 +CHARS="" # Characters displayed on the begining of show line
38 +CCHARS="$NORMAL" # Color of these characters (look at /etc/sysconfig/init-colors.gentoo example)
40 # Source configuration if available - may override default values
41 +[ -r /etc/sysconfig/init-colors ] && . /etc/sysconfig/init-colors
42 [ -r /etc/sysconfig/system ] && . /etc/sysconfig/system
43 [ -r /etc/sysconfig/bootsplash ] && . /etc/sysconfig/bootsplash
49 - is_yes "$COLOR_INIT" && echo -ne "\033[0;3${2}m"
51 + if [ -n "$3" ]; then ISBOLD="$3"; else ISBOLD="$NOBOLD"; fi
52 + is_yes "$COLOR_INIT" && echo -ne "\033[${ISBOLD};3${2}m"
56 + termput setaf $NORMAL
64 - is_yes "$COLOR_INIT" && tput "$@"
65 + if [ "$3" == "1" ]; then tput bold; else tput sgr0; fi
66 + is_yes "$COLOR_INIT" && tput setaf "$2"
70 + termput setaf $NORMAL
75 if is_yes "$FASTRC"; then
78 + if [ -n "$CHARS" ]; then
79 + termput setaf $CCHARS ; echo -n "$CHARS"; termput op
85 + if [ -n "$CHARS" ]; then
86 + termput setaf $CCHARS ; echo -n "$CHARS"; termput op
89 awk "BEGIN { for (j=length(\"$text\"); j<$INIT_COL; j++) printf \".\" }"
95 - if [ -n "$2" ]; then COLOR="$2"; else COLOR="2"; fi
96 + if [ -n "$2" ]; then COLOR="$2"; else COLOR="$CDONE"; fi
98 - echo -n "$(termput setaf 6)[$(termput setaf "$COLOR") $(nls --nls-domain rc-scripts "$1") $(termput setaf 6)]$(termput op)"
99 + echo -n "$(termput setaf $CBRACKETS)[$(termput setaf $COLOR) $(nls --nls-domain rc-scripts "$1") $(termput setaf $CBRACKETS)]$(termput op)"
105 + progress "BUSY" "$CBUSY"
109 @@ -296,14 +331,14 @@
114 + progress "FAIL" "$CFAIL"
122 + progress "DIED" "$CFAIL"
126 diff -urN rc-scripts-0.4.0.9-orig/rc.d/rc rc-scripts-0.4.0.9/rc.d/rc
127 --- rc-scripts-0.4.0.9-orig/rc.d/rc 2004-02-06 23:36:29.000000000 +0100
128 +++ rc-scripts-0.4.0.9/rc.d/rc 2004-04-27 20:52:23.076606016 +0200
133 -af2=$(termput setaf 2)
134 -af6=$(termput setaf 6)
135 -af7=$(termput setaf 7)
136 +af2=$(termput setaf $CRESMAN)
137 +af6=$(termput setaf $CBRACKETS)
139 text="$(termput op)$(nls '%sResource Manager: %sEntering runlevel number' "$af2" "$af7")"
140 text_size="$(nls '%sResource Manager: %sEntering runlevel number' "" "")"
141 resp_size="$(nls 'DONE')"
142 diff -urN rc-scripts-0.4.0.9-orig/rc.d/rc.sysinit rc-scripts-0.4.0.9/rc.d/rc.sysinit
143 --- rc-scripts-0.4.0.9-orig/rc.d/rc.sysinit 2004-02-06 23:36:29.000000000 +0100
144 +++ rc-scripts-0.4.0.9/rc.d/rc.sysinit 2004-04-27 20:52:31.874268568 +0200
146 [ -e /proc/splash ] && is_no "$BOOT_SPLASH" && echo "0" > /proc/splash
148 # Print welcome message
149 -nls "\t\t\t%sPowered by %sPLD Linux Distribution%s" "$(termput setaf 6)" "$(termput setaf 2)" "$(termput setaf 7)"
150 +nls "\t\t\t%sPowered by %sPLD Linux Distribution%s" "$(termput setaf $CPOWEREDBY)" "$(termput setaf $CPLD)" "$(termput op)"
151 if is_yes "$PROMPT"; then
152 - nls -n "\t\t Press %sI%s to enter interactive startup" "$(termput setaf 1)" "$(termput setaf 7)"
153 + nls -n "\t\t Press %sI%s to enter interactive startup" "$(termput setaf $CI)" "$(termput op)"
157 diff -urN rc-scripts-0.4.0.9-orig/sysconfig/init-colors.gentoo rc-scripts-0.4.0.9/sysconfig/init-colors.gentoo
158 --- rc-scripts-0.4.0.9-orig/sysconfig/init-colors.gentoo 1970-01-01 01:00:00.000000000 +0100
159 +++ rc-scripts-0.4.0.9/sysconfig/init-colors.gentoo 2004-04-27 22:22:11.272078152 +0200
161 +# Gentoo colors, copy this file as: /etc/sysconfig/init-colors, or just make a symlink
163 +CBRACKETS="$BLUE $BOLD" # brackets [ ] color
164 +CDONE="$GREEN $BOLD" # DONE and WORK color
165 +CBUSY="$MAGENTA $BOLD" # BUSY color
166 +CFAIL="$RED $BOLD" # FAIL and DIED color
167 +CPOWEREDBY="$BLUE $BOLD" # "Powered by" color
168 +CPLD="$GREEN $BOLD" # "PLD Linux Distribution" color
169 +CI="$RED $BOLD" # Capital I color (press I to enter interactive startup)
170 +CRESMAN="$GREEN $BOLD" # "Resource Manager" color
171 +CHARS=" * " # Characters displayed on the begining of show line
172 +CCHARS="$GREEN $BOLD" # Color of these characters
173 diff -urN rc-scripts-0.4.0.9-orig/sysconfig/init-colors.plddefault rc-scripts-0.4.0.9/sysconfig/init-colors.plddefault
174 --- rc-scripts-0.4.0.9-orig/sysconfig/init-colors.plddefault 1970-01-01 01:00:00.000000000 +0100
175 +++ rc-scripts-0.4.0.9/sysconfig/init-colors.plddefault 2004-04-27 22:25:10.501831088 +0200
177 +# Default PLD colors. You don't need to copy it as /etc/sysconfig/init-colors
178 +# they are included in /etc/rc.d/init.d/functions
180 +CBRACKETS="$CYAN" # brackets [ ] color
181 +CDONE="$GREEN" # DONE and WORK color
182 +CBUSY="$MAGENTA" # BUSY color
183 +CFAIL="$RED" # FAIL and DIED color
184 +CPOWEREDBY="$CYAN" # "Powered by" color
185 +CPLD="$GREEN" # "PLD Linux Distribution" color
186 +CI="$RED" # Capital I color (press I to enter interactive startup)
187 +CRESMAN="$GREEN" # "Resource Manager" color
188 +CHARS="" # Characters displayed on the begining of show line
189 +CCHARS="$NORMAL" # Color of these characters (look at /etc/sysconfig/init-colors.gentoo example)
190 diff -urN rc-scripts-0.4.0.9-orig/sysconfig/Makefile.am rc-scripts-0.4.0.9/sysconfig/Makefile.am
191 --- rc-scripts-0.4.0.9-orig/sysconfig/Makefile.am 2004-02-06 23:36:31.000000000 +0100
192 +++ rc-scripts-0.4.0.9/sysconfig/Makefile.am 2004-04-27 22:26:53.496173568 +0200
197 + init-colors.gentoo \
198 + init-colors.plddefault \
202 diff -urN rc-scripts-0.4.0.9-orig/sysconfig/Makefile.in rc-scripts-0.4.0.9/sysconfig/Makefile.in
203 --- rc-scripts-0.4.0.9-orig/sysconfig/Makefile.in 2004-02-06 23:37:17.000000000 +0100
204 +++ rc-scripts-0.4.0.9/sysconfig/Makefile.in 2004-04-27 22:27:11.472440760 +0200
206 SUBDIRS = network-scripts interfaces hwprofiles
209 + init-colors.gentoo \
210 + init-colors.plddefault \