/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 49 Revision 138
1#!/sbin/runscript 1#!/sbin/runscript
2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.25 2005/05/12 13:04:27 wolf31o2 Exp $
5 2
6echo "0" > /proc/sys/kernel/printk 3ACPI="no"
4ALSA="yes"
5APM="no"
6DETECT="yes"
7DHCP="yes" 7DHCP="yes"
8DETECT="yes"
9GPM="yes" 8GPM="yes"
10PCMCIA="no"
11HOTPLUG="yes" 9HOTPLUG="yes"
12APM="no"
13ACPI="no"
14IDEDMA="yes" 10IDEDMA="yes"
11NFS="yes"
12PCMCIA="yes"
13SSHD="no"
14X11="yes"
15
16get_config() {
15CMDLINE="`cat /proc/cmdline`" 17 CMDLINE="$(cat /proc/cmdline)"
18
16for x in ${CMDLINE} ; do 19 for x in ${CMDLINE} ; do
17 if [ "${x}" = "nodetect" ]; then 20 case "${x}" in
21 nodetect)
22 ACPI="no"
23 ALSA="no"
24 APM="no"
18 DETECT="no" 25 DETECT="no"
19 GPM="no" 26 GPM="no"
20 HOTPLUG="no" 27 HOTPLUG="no"
21 APM="no" 28 NFS="no"
22 ACPI="no" 29 X11="no"
23 fi 30 ;;
24 31 nodhcp)
25 if [ "${x}" = "nodhcp" ]; then
26 DHCP="no" 32 DHCP="no"
27 fi 33 ;;
28 34 nogpm)
29 if [ "${x}" = "nogpm" ]; then
30 GPM="no" 35 GPM="no"
31 fi 36 ;;
32 37 dopcmcia)
33 if [ "${x}" = "dopcmcia" ]; then
34 PCMCIA="yes" 38 PCMCIA="yes"
35 fi 39 ;;
36 40 doapm)
37 if [ "${x}" = "doapm" ]; then
38 APM="yes"
39 ACPI="no" 41 ACPI="no"
40 fi 42 APM="yes"
41 43 ;;
42 if [ "${x}" = "acpi=on" -o "${x}" = "acpi=force" ]; then 44 acpi\=on|acpi\=force)
43 APM="no"
44 ACPI="yes" 45 ACPI="yes"
45 fi 46 APM="no"
46 47 ;;
47 if [ "${x}" = "ide=nodma" ]; then 48 ide\=nodma)
48 IDEDMA="no" 49 IDEDMA="no"
49 fi 50 ;;
50 51 nohotplug)
51 if [ "${x}" = "nohotplug" ]; then
52 HOTPLUG="no" 52 HOTPLUG="no"
53 fi 53 ;;
54 nosound)
55 ALSA="no"
56 ;;
57 nonfs)
58 NFS="no"
59 ;;
60 dosshd)
61 SSHD="yes"
62 ;;
63 nox)
64 X11="no"
65 ;;
66 esac
54done 67 done
68}
55 69
56depend() { 70depend() {
57 need modules 71 need modules
58 use alsasound 72 before net
59# provide gpm pcmcia apmd acpid coldplug 73# provide gpm pcmcia apmd acpid coldplug hdparm alsasound mkxf86config x-setup
74}
75
76# Checks whether a service will be started by autoconfig.
77# Usage: check_svc var service [service_alternative]
78check_svc() {
79 if [ "${1}" = "yes" ]
80 then
81 if [ -x "/etc/init.d/${2}" ]
82 then
83 echo "${2}"
84 elif [ -n "${3}" -a -x "/etc/init.d/${3}" ]
85 then
86 echo "${3}"
87 fi
88 fi
89}
90
91# Prints an ordered list of services that will be started by autoconfig.
92list_services() {
93 get_config
94
95 local svcs="$(check_svc ${APM} apmd)"
96 svcs="${svcs} $(check_svc ${ACPI} acpid)"
97 svcs="${svcs} $(check_svc ${IDEDMA} hdparm)"
98 svcs="${svcs} $(check_svc ${PCMCIA} pcmcia)"
99 svcs="${svcs} $(check_svc ${GPM} gpm)"
100 svcs="${svcs} $(check_svc ${HOTPLUG} coldplug hotplug)"
101 svcs="${svcs} $(check_svc ${ALSA} alsasound)"
102 svcs="${svcs} $(check_svc ${NFS} nfsmount)"
103 svcs="${svcs} $(check_svc ${SSH} sshd)"
104 svcs="${svcs} $(check_svc ${X11} mkxf86config x-setup)"
105
106 echo ${svcs}
107}
108
109unpack_firmware() {
110 # This unpacks any firmware tarballs.
111 # This has been moved here from coldplug, but might not be very effective
112 # since udev does coldplugging in 089 and higher.
113 if [ -e /lib/firmware.tar.bz2 ]
114 then
115 ebegin "Unpacking hotplug firmware"
116 tar xjf /lib/firmware.tar.bz2 -C /lib/firmware
117 eend 0
118 fi
119}
120
121get_info() {
122 local tmp
123
124 if [ ! -z "${1}" -a ! -z "${2}" ]
125 then
126 tmp=$(grep "^$1[[:space:]]\+:" /proc/cpuinfo | head -n 1 | cut -d" " -f3-)
127# tmp=$([[ $'\n'$(</proc/cpuinfo) =~ $'\n''$1[[:space:]]\+:' ]] | head -n 1 | cut -d" " -f3-)
128 eval "${2}='${tmp}'"
129 fi
130}
131
132detect_mips() {
133 get_info "cpu model" cpuinfo
134 get_info "system type" machinfo
135 cpuinfo="${cpuinfo%% FPU*}"
136
137 case "${machinfo}" in
138 "SGI Indigo2")
139 case "${cpuinfo}" in
140 R4*)
141 machinfo="SGI Indigo2" # I2 R4x00
142 ;;
143 R8*)
144 machinfo="SGI Indigo2 Power" # I2 R8000
145 ;;
146 R10*)
147 machinfo="SGI Indigo2 Impact" # I2 R10000
148 ;;
149 esac
150 ;;
151 esac
152
153 PC="Detected an ${machinfo} w/ ${numcpu} ${cpuinfo} CPU(s)"
154}
155
156detect_x86_amd64_ia64() {
157 if [ "${1}" = "ia64" ]
158 then
159 get_info "family" cpuinfo
160 else
161 get_info "model name" cpuinfo
162 fi
163 get_info "cpu MHz" mhz
164 mhz="${mhz%%.*}MHz"
165
166 PC="Detected ${numcpu} ${cpuinfo} CPU(s) @ ${mhz}"
167}
168
169detect_alpha() {
170 get_info "platform string" machinfo
171 get_info "cpu" cpuinfo1
172 get_info "cpu model" cpuinfo2
173 get_info "cpus detected" numcpu
174
175 PC="Detected ${numcpu} ${cpuinfo1} ${cpuinfo2} CPU(s) in a ${machinfo} system"
176}
177
178detect_ppc() {
179 get_info "cpu" cpuinfo
180 get_info "clock" mhz
181 get_info "detected as" machinfo
182 machinfo="${machinfo##*\(}"
183 machinfo="${machinfo%%\)*}"
184
185 local machtype=""
186
187 case "${machinfo}" in
188 "CHRP Pegasos2")
189 machtype="Pegasos 2"
190 ;;
191 "CHRP IBM,9124-720")
192 machtype="IBM OP720"
193 ;;
194 "iBook 2 rev. 2")
195 machtype="Apple iBook G3"
196 ;;
197 "iMac G5"*)
198 machtype="Apple iMac G5"
199 ;;
200 "MPC8241")
201 machtype="Kurobox"
202 ;;
203 "PowerMac G5")
204 machtype="Apple PowerMac G5"
205 ;;
206 "PowerMac G5 Dual Core")
207 machtype="Apple PowerMac G5 Dual Core"
208 ;;
209 "PowerMac G4 AGP Graphics")
210 machtype="Apple PowerMac G4"
211 ;;
212 "PowerBook Titanium"|'PowerBook G4 15"')
213 machtype="Apple Powerbook G4"
214 ;;
215 "Unknown Intrepid-based")
216 machtype="Apple Mac-Mini"
217 ;;
218 *)
219 machtype="Unknown PPC System"
220 ;;
221 esac
222
223 PC="Detected a(n) ${machtype} w/ ${numcpu} ${cpuinfo} CPU(s)"
224}
225
226detect_sparc() {
227 get_info "cpu" cpuinfo
228 get_info "ncpus active" numcpu
229 get_info "ncpus probed" numprobed
230
231 PC="Detected ${numcpu} active ${cpuinfo} CPU(s) of ${numprobed} total"
60} 232}
61 233
62start() { 234start() {
235 echo "0" > /proc/sys/kernel/printk
236 get_config
237
238 # First off, we want hotplug/coldplug enabled, so let's re-enable it.
239 # We do this even if we aren't startup up the hotplug/coldplug
240 # services for the installer.
241 sed -i 's/RC_COLDPLUG="no"/RC_COLDPLUG="yes"/' /etc/conf.d/rc
242 # Now, we check if we're supposed to run a coldplug script.
243 if [ "${HOTPLUG}" = "yes" ]
244 then
245 # Check whether we should be using hotplug/coldplug or whether we should
246 # just let udev do it all.
247 if [ -x /etc/init.d/coldplug ]
248 then
249 start_service coldplug
250 elif [ -x /etc/init.d/hotplug ]
251 then
252 start_service hotplug
253 else
254 unpack_firmware
255 [ -x /sbin/udevtrigger ] && /sbin/udevtrigger
256 fi
257 else
258 ewarn "Hotplug/Coldplug disabled via cmdline ..."
259 fi
260
63 if [ "${DETECT}" = "yes" ]; then 261 if [ "${DETECT}" = "yes" ]
262 then
64 ebegin ${WARN}"Hardware detection started" 263 ebegin "Hardware detection started"
65 PC=`awk -F: '/^processor/{printf "Processor"$2" is"};/^model name/{printf $2};/^vendor_id/{printf vendor};/^cpu MHz/{printf " %dMHz",int($2)};/^cache size/{printf ","$2" Cache"};/^$/{print ""}' /proc/cpuinfo 2>/dev/null` 264 local numcpu="$(grep -c '^processor[[:space:]]\+:' /proc/cpuinfo)"
66 ebegin ${GOOD}"${PC}" 265# local numcpu=$([[ $'\n'$(</proc/cpuinfo) =~ $'\n''processor[[:space:]]\+:' ]] | wc -l)
67 eend 266 local arch="$(uname -m)"
267
268 case ${arch} in
269 mips*)
270 detect_mips
271 ACPI="no"
272 APM="no"
273 IDEDMA="no"
274 ;;
275 i?86|x86_64)
276 detect_x86_amd64_ia64
277 ;;
278 alpha)
279 detect_alpha
280 ACPI="no"
281 APM="no"
282 ;;
283 sparc*)
284 detect_sparc
285 ACPI="no"
286 APM="no"
287 ;;
288 powerpc*)
289 detect_ppc
290 ACPI="no"
291 APM="no"
292 ;;
293 ia64)
294 detect_x86_amd64_ia64 "ia64"
295 APM="no"
296 ;;
297 *)
298 PC=
299 ;;
300 esac
301 [ -n "${PC}" ] && einfo "${PC}"
68 [ -x /usr/sbin/hwsetup ] && hwsetup -p >/dev/null 302 [ -x /usr/sbin/hwsetup ] && hwsetup
69 eend 303 eend
70 else 304 else
71 ebegin ${WARN}"Hardware detection disabled via cmdline$NORMAL" 305 ewarn "Hardware detection disabled via cmdline ..."
72 fi 306 fi
73 307
74 if [ "${APM}" = "yes" ]; then 308 if [ "${APM}" = "yes" ]
75 modprobe apm power_off=1 >/dev/null 2>&1 && ebegin ${GOOD}"APM BIOS found, power management functions enabled.${NORMAL}" 309 then
76 [ -x /etc/init.d/apmd ] && /etc/init.d/apmd start 310 modprobe apm power_off=1 >/dev/null 2>&1 && \
311 einfo "APM BIOS found, power management functions enabled ..."
312 [ -x /etc/init.d/apmd ] && start_service apmd
77 else 313 else
78 ebegin ${GOOD}"Not Loading APM Bios support.${NORMAL}" 314 einfo "Not Loading APM Bios support ..."
79 eend
80 fi 315 fi
81 316
82 if [ "${ACPI}" = "yes" ]; then 317 if [ "${ACPI}" = "yes" ]
83 modprobe processor >/dev/null 2>&1 && ebegin ${GOOD} ACPI power management functions enabled.${NORMAL} && modprobe thermal >/dev/null 318 then
319 modprobe processor >/dev/null 2>&1 && \
320 ebegin "ACPI power management functions enabled" && \
321 modprobe thermal >/dev/null
84 modprobe fan >/dev/null 2>&1 322 modprobe fan >/dev/null 2>&1
85 modprobe button >/dev/null 2>&1 323 modprobe button >/dev/null 2>&1
86 modprobe battery >/dev/null 2>&1 324 modprobe battery >/dev/null 2>&1
87 modprobe ac >/dev/null 2>&1 325 modprobe ac >/dev/null 2>&1
88 [ -x /etc/init.d/acpid ] && /etc/init.d/acpid start 326 modprobe thermal >/dev/null 2>&1
327 modprobe video >/dev/null 2>&1
328 modprobe dock >/dev/null 2>&1
329 [ -x /etc/init.d/acpid ] && start_service acpid
89 eend 330 eend
331 else
332 einfo "Not Loading ACPI support ..."
90 fi 333 fi
91 334
92 if [ "${IDEDMA}" = "yes" ]; then 335 if [ "${IDEDMA}" = "yes" ]
93 [ -x /etc/init.d/hdparm ] && /etc/init.d/hdparm start 336 then
337 [ -x /etc/init.d/hdparm ] && start_service hdparm
338 else
339 ewarn "Disabling IDE DMA support ..."
94 fi 340 fi
95 341
96 if [ "${PCMCIA}" = "yes" ]; then 342 if [ "${PCMCIA}" = "yes" ]
97 ebegin ${HILITE} "PCMCIA enabled via cmdline" 343 then
98 /etc/init.d/pcmcia start 344 [ -x /etc/init.d/pcmcia ] && start_service pcmcia
345 else
346 ewarn "PCMCIA disabled via cmdline ..."
99 fi 347 fi
100 348
101 if [ "${DHCP}" = "no" ]; then 349 if [ "${DHCP}" = "no" ]
350 then
102 sed -i -e '/^ifconfig_eth.*dhcp.*/ s/^/#/' \ 351 sed -i -e '/^ifconfig_eth.*dhcp.*/ s/^/#/' \
103 -e '/^iface_eth.*dhcp.*/ s/^/#/' \ 352 -e '/^iface_eth.*dhcp.*/ s/^/#/' \
353 -e '/^config_eth.*dhcp.*/ s/^/#/' \
104 /etc/conf.d/net 354 /etc/conf.d/net
105 ebegin ${BAD}"Skipping DHCP broadcast detection as requested on boot commandline." 355 for i in `seq 0 4`
356 do
357 echo "config_eth$i=( \"none\" )" >> /etc/conf.d/net
358 done
359 ewarn "Skipping DHCP broadcast ..."
106 fi 360 fi
107 361
108 #Read in what hwsetup has found 362 # Read in what hwsetup has found
109 [ -f /etc/sysconfig/knoppix ] && . /etc/sysconfig/knoppix 363 [ -f /etc/sysconfig/gentoo ] && . /etc/sysconfig/gentoo
110 364
111 # Mouse 365 # Mouse
112 if [ -n "${MOUSE_DEVICE}" ]; then 366 if [ -n "${MOUSE_DEVICE}" ]
367 then
113 ebegin ${GOOD}"Mouse is ${HILITE}${MOUSE_FULLNAME}${GOOD} at ${HILITE}${MOUSE_DEVICE}${NORMAL}" 368 einfo "Mouse is ${HILITE}${MOUSE_FULLNAME}${NORMAL} at ${HILITE}${MOUSE_DEVICE}${NORMAL} ..."
114 source /etc/sysconfig/mouse 369 source /etc/sysconfig/mouse
115 if [ -x /usr/sbin/gpm ]; then 370 if [ -x /usr/sbin/gpm ]
371 then
116 if [ `grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm` ]; then 372 if [ $(grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm) ]
373# if [ $([[ $'\n'$(</etc/conf.d/gpm) =~ $'\n''#MOUSE=${MOUSETYPE}' ]]) ]
374 then
117 sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm 375 sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm
118 else 376 else
119 echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm 377 echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm
120 fi 378 fi
379
121 if [ `grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm` ]; then 380 if [ $(grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm) ]
381# if [ $([[ $'\n'$(</etc/conf.d/gpm) =~ $'\n''#MOUSEDEV=${DEVICE}' ]]) ]
382 then
122 sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm 383 sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm
123 else 384 else
124 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm 385 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm
125 fi 386 fi
387
388 [ "${GPM}" = "yes" ] \
389 && [ -x /etc/init.d/gpm ] && start_service gpm
390 fi
391 fi
392
393 [ "${DETECT}" = "no" ] && DHCP="no"
394 [ "${DETECT}" = "yes" ] \
395 && NETDEVICES="$(awk -F: '/eth.:|tr.:|ath.:|wlan.:/{print $1}' /proc/net/dev 2>/dev/null)"
396
397 if [ -n "${NETDEVICES}" ]
398 then
399 for nics in ${NETDEVICES}
400 do
126 if [ "$GPM" = "yes" ]; then 401 if [ "${DHCP}" = "yes" ]
127 [ -x /etc/init.d/gpm ] && /etc/init.d/gpm start 402 then
403 einfo "Network device ${HILITE}${nics}${NORMAL} detected, DHCP broadcasting for IP ..."
404 if [ -f /var/run/dhcpcd-${nics}.pid ]
405 then
406 if [ -z "$(/sbin/ifconfig ${nics} | grep 'inet addr')" ]
407 then
408 kill $(cat /var/run/dhcpcd-${nics}.pid)
409 sleep 2
410 dhcpcd -n -h $(hostname) ${nics}
411 fi
412 fi
128 fi 413 fi
129 fi 414 done
130 eend 415 [ "${NFS}" = "yes" ] \
416 && [ -x /etc/init.d/nfsmount ] && start_service nfsmount
417 if [ "${SSHD}" = "yes" ]
418 then
419 # TODO: need to add a password check/warning here
420 [ -x /etc/init.d/sshd ] && start_service sshd
131 fi 421 fi
132
133 if [ "${HOTPLUG}" = "yes" ]; then
134 #Check whether we should be using hotplug or coldplug
135 if [ -x /etc/init.d/coldplug ]; then
136 /etc/init.d/coldplug start
137 else 422 else
138 [ -x /etc/init.d/hotplug ] && /etc/init.d/hotplug start 423 ewarn "No Network device auto detected ..."
139 fi 424 fi
140 else
141 ebegin ${BAD}"Hotplug disabled via cmdline${NORMAL}"
142 fi
143 425
144 if [ "${DETECT}" = "no" ]; then 426 if [ "${ALSA}" = "yes" ]
145 DHCP="no" 427 then
146 fi
147
148 if [ "${DETECT}" = "yes" ]; then
149 NETDEVICES="`awk -F: '/eth.:|tr.:/{print $1}' /proc/net/dev 2>/dev/null`"
150 fi
151
152 if [ -n "${NETDEVICES}" ]; then
153 if [ "${DHCP}" = "yes" ]; then
154 ebegin ${GOOD}"Network device${HILITE}${NETDEVICES}${GOOD} detected,${WARN} DHCP broadcasting for IP.${NORMAL}"
155 dhcpcd -h $(hostname) &
156 fi
157 eend
158
159 else
160 ebegin ${BAD}"No Network device auto detected.${NORMAL}"
161 fi
162
163
164 if [ -n "${SOUND_FULLNAME}" -o -n "${SOUND_DRIVER}" ]; then 428 if [ -n "${SOUND_FULLNAME}" -o -n "${SOUND_DRIVER}" ]
165 ebegin ${GOOD}"Soundcard:" 429 then
166 eend 430 local sndmsg="Soundcard:\n"
431
167 [ -n "${SOUND_FULLNAME}" ] 432 [ -n "${SOUND_FULLNAME}" ] \
168 ebegin " ${WARN}${SOUND_FULLNAME}" 433 && sndmsg="${sndmsg} ${WARN}${SOUND_FULLNAME}\n"
169 [ -n "${SOUND_DRIVER}" ] 434 [ -n "${SOUND_DRIVER}" ] \
170 ebegin ${WARN}" driver = ${SOUND_DRIVER}"${HILITE} 435 && sndmsg="${sndmsg} driver = ${SOUND_DRIVER}\n"
171 if [ -d /proc/asound/card0 ] && [ -x /usr/bin/amixer ]; then 436
172 amixer scontrols > /etc/amixer 437 einfo "${sndmsg}"
173 if [ -n "`grep Master /etc/amixer`" ] 438
439 if [ -x /etc/init.d/alsasound ]
174 then 440 then
175 amixer -q set Master 95% unmute >/dev/null 2>&1 441 start_service alsasound
176 fi 442 fi
177 if [ -n "`grep PCM /etc/amixer`" ] 443
444 if [ -e /proc/asound/cards ]
178 then 445 then
179 amixer -q set PCM 95% unmute >/dev/null 2>&1 446 for i in $(cat /proc/asound/cards | awk '{print $1}' | grep ^[[:digit:]])
447 do
448 if [ -d /proc/asound/card$i ] && [ -x /usr/bin/amixer ]
449 then
450 amixer -c $i scontrols > /etc/amixer
451 [ -n "$(grep Master /etc/amixer)" ] \
452 && amixer -c $i -q set Master 95% unmute \
453 >/dev/null 2>&1
454 [ -n "$(grep PCM /etc/amixer)" ] \
455 && amixer -c $i -q set PCM 95% unmute \
456 >/dev/null 2>&1
457 [ -n "$(grep Mic /etc/amixer)" ] \
458 && amixer -c $i -q set Mic 95% mute cap \
459 >/dev/null 2>&1
460 [ -n "$(grep Wave /etc/amixer)" ] \
461 && amixer -c $i -q set Wave 95% unmute \
462 >/dev/null 2>&1
463 [ -n "$(grep Capture /etc/amixer)" ] \
464 && amixer -c $i -q set Capture 95% unmute cap \
465 >/dev/null 2>&1
466 fi
467 done
180 fi 468 fi
181 if [ -n "`grep Mic /etc/amixer`" ] 469 fi
470 else
471 ewarn "Skipping ALSA detection as requested on command line ..."
472 fi
473
474 [ -n "${XDESC}" ] && einfo "VideoCard: ${HILITE}${XDESC}${NORMAL}"
475
476 if [ "${X11}" = "yes" ]
477 then
478 if [ -x /etc/init.d/mkxf86config ]
182 then 479 then
183 amixer -q set Mic 95% unmute cap >/dev/null 2>&1 480 start_service mkxf86config
184 fi 481 fi
185 if [ -n "`grep Wave /etc/amixer`" ] 482 if [ -x /etc/init.d/x-setup ]
186 then 483 then
187 amixer -q set Wave 95% unmute >/dev/null 2>&1 484 start_service x-setup
188 fi 485 fi
189 if [ -n "`grep Capture /etc/amixer`" ] 486 else
190 then 487 touch /etc/init.d/.noxdm
191 amixer -q set Capture 95% unmute cap >/dev/null 2>&1
192 fi
193 fi
194 fi
195
196
197 if [ -n "${XDESC}" -o -n "${XDESC}" ]; then
198 ebegin ${GOOD}"VideoCard: ${WARN} ${XDESC}"
199 eend
200 fi 488 fi
201 489
202 killall hwsetup 2>/dev/null 490 killall hwsetup 2>/dev/null
203 echo "6" > /proc/sys/kernel/printk 491 echo "6" > /proc/sys/kernel/printk
204
205} 492}
206 493
207# vim: ts=4 494# vim: ts=4

Legend:
Removed from v.49  
changed lines
  Added in v.138

  ViewVC Help
Powered by ViewVC 1.1.20