/[livecd-tools]/trunk/autoconfig
Gentoo

Contents of /trunk/autoconfig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 142 - (hide annotations) (download)
Mon Feb 25 05:20:35 2008 UTC (9 years, 10 months ago) by wolf31o2
File size: 12496 byte(s)
Rearrange some of the detection routines so it makes more sense and added brltty= checking.
1 zhen 2 #!/sbin/runscript
2 zhen 4
3 wolf31o2 139 # This script is used by Gentoo release media to start certain services and to
4     # ensure a sane setup for a CD-based boot.
5    
6 wolf31o2 140 ACPI="yes"
7 wolf31o2 138 ALSA="yes"
8     APM="no"
9 wolf31o2 142 BRLTTY="no"
10 wolf31o2 138 DETECT="yes"
11 zhen 2 DHCP="yes"
12 wolf31o2 140 DMRAID="yes"
13     EVMS="no"
14     FIREWIRE="yes"
15 wolf31o2 24 GPM="yes"
16 wolf31o2 141 HALD="yes"
17 zhen 2 HOTPLUG="yes"
18 wolf31o2 49 IDEDMA="yes"
19 wolf31o2 140 LVM="no"
20     MDADM="yes"
21     NET="yes"
22 wolf31o2 138 NFS="yes"
23 wolf31o2 140 PASSWD="yes"
24     PATA="yes"
25 wolf31o2 138 PCMCIA="yes"
26 wolf31o2 140 SATA="yes"
27     SCSI="no"
28 wolf31o2 138 SSHD="no"
29 wolf31o2 140 USB="yes"
30 wolf31o2 76 X11="yes"
31 wolf31o2 51
32 wolf31o2 68 get_config() {
33     CMDLINE="$(cat /proc/cmdline)"
34 wolf31o2 51
35 wolf31o2 68 for x in ${CMDLINE} ; do
36 wolf31o2 78 case "${x}" in
37 wolf31o2 140 # We put nodetect first, so we can override it with do* commands
38 wolf31o2 78 nodetect)
39 wolf31o2 138 ACPI="no"
40     ALSA="no"
41     APM="no"
42 wolf31o2 78 DETECT="no"
43 wolf31o2 140 DMRAID="no"
44     EVMS="no"
45     FIREWIRE="no"
46 wolf31o2 78 GPM="no"
47 wolf31o2 141 HALD="no"
48 wolf31o2 78 HOTPLUG="no"
49 wolf31o2 140 LVM="no"
50     MDADM="no"
51     NET="no"
52 wolf31o2 138 NFS="no"
53 wolf31o2 140 PCMCIA="no"
54     PATA="no"
55     SATA="no"
56     SCSI="no"
57     USB="no"
58 wolf31o2 78 X11="no"
59     ;;
60 wolf31o2 140 noapm)
61     APM="no"
62     ;;
63 wolf31o2 78 nodhcp)
64     DHCP="no"
65     ;;
66 wolf31o2 140 nodmraid)
67     DMRAID="no"
68     ;;
69     noevms|noevms2)
70     EVMS="no"
71     ;;
72     nofirewire)
73     FIREWIRE="no"
74     ;;
75 wolf31o2 78 nogpm)
76     GPM="no"
77     ;;
78 wolf31o2 139 nohotplug)
79     HOTPLUG="no"
80 wolf31o2 78 ;;
81 wolf31o2 140 noload=*)
82     NOLOAD="$*"
83     ;;
84     nolvm|nolvm2)
85     LVM="no"
86     ;;
87     nomdadm)
88     MDADM="no"
89     ;;
90     nonet)
91     NET="no"
92     ;;
93 wolf31o2 139 nonfs)
94     NFS="no"
95     ;;
96 wolf31o2 140 nopata)
97     PATA="no"
98     ;;
99     nopcmcia)
100     PCMCIA="no"
101     ;;
102     nosata)
103     SATA="no"
104     ;;
105     noscsi)
106     SCSI="no"
107     ;;
108     nosshd)
109     SSHD="no"
110     ;;
111 wolf31o2 139 nosound)
112     ALSA="no"
113     ;;
114 wolf31o2 140 nousb)
115     USB="no"
116 wolf31o2 139 nox)
117     X11="no"
118     ;;
119 wolf31o2 140 acpi\=on|acpi\=force)
120     ACPI="yes"
121     APM="no"
122     ;;
123 wolf31o2 142 brltty=*)
124     BRLTTY="yes"
125     ;;
126     ide\=nodma)
127     IDEDMA="no"
128     ;;
129 wolf31o2 78 doapm)
130 wolf31o2 138 ACPI="no"
131 wolf31o2 78 APM="yes"
132     ;;
133 wolf31o2 140 dodhcp)
134     DHCP="yes"
135 wolf31o2 78 ;;
136 wolf31o2 140 dodmraid)
137     DMRAID="yes"
138     ;;
139     doevms|doevms2)
140     EVMS="yes"
141     ;;
142     dofirewire)
143     FIREWIRE="yes"
144     ;;
145     dogpm)
146     GPM="yes"
147     ;;
148     dohotplug)
149     HOTPLUG="yes"
150     ;;
151     dolvm|dolvm2)
152     LVM="yes"
153     ;;
154     domdadm)
155     MDADM="yes"
156     ;;
157     donet)
158     NET="yes"
159     ;;
160     dopata)
161     PATA="yes"
162     ;;
163 wolf31o2 139 dopcmcia)
164     PCMCIA="yes"
165 wolf31o2 78 ;;
166 wolf31o2 140 dosata)
167     SATA="yes"
168     ;;
169     doscsi)
170     SCSI="yes"
171     ;;
172 wolf31o2 138 dosshd)
173     SSHD="yes"
174     ;;
175 wolf31o2 140 dosound)
176     SOUND="yes"
177     ;;
178     dousb)
179     USE="yes"
180     ;;
181     dox)
182     X11="yes"
183     ;;
184     passwd=*)
185     PASSWD="no"
186     PASSWORD="$*"
187     ;;
188 wolf31o2 78 esac
189 wolf31o2 68 done
190     }
191    
192 zhen 2 depend() {
193     need modules
194 wolf31o2 50 before net
195 zhen 2 }
196    
197 wolf31o2 69 # Checks whether a service will be started by autoconfig.
198     # Usage: check_svc var service [service_alternative]
199     check_svc() {
200 wolf31o2 113 if [ "${1}" = "yes" ]
201 wolf31o2 78 then
202 wolf31o2 114 if [ -x "/etc/init.d/${2}" ]
203 wolf31o2 78 then
204 wolf31o2 113 echo "${2}"
205     elif [ -n "${3}" -a -x "/etc/init.d/${3}" ]
206 wolf31o2 78 then
207 wolf31o2 113 echo "${3}"
208 wolf31o2 69 fi
209     fi
210     }
211    
212     # Prints an ordered list of services that will be started by autoconfig.
213     list_services() {
214     get_config
215    
216 wolf31o2 140 local svcs="$(check_svc ${ACPI} acpid)"
217     svcs="${svcs} $(check_svc ${ALSA} alsasound)"
218     svcs="${svcs} $(check_svc ${APM} apmd)"
219 wolf31o2 69 svcs="${svcs} $(check_svc ${GPM} gpm)"
220 wolf31o2 141 svcs="${svcs} $(check_svc ${HALD} hald)"
221 wolf31o2 69 svcs="${svcs} $(check_svc ${HOTPLUG} coldplug hotplug)"
222 wolf31o2 140 svcs="${svcs} $(check_svc ${IDEDMA} hdparm)"
223 wolf31o2 138 svcs="${svcs} $(check_svc ${NFS} nfsmount)"
224 wolf31o2 140 svcs="${svcs} $(check_svc ${PASSWD} pwgen"
225     svcs="${svcs} $(check_svc ${PCMCIA} pcmcia)"
226 wolf31o2 138 svcs="${svcs} $(check_svc ${SSH} sshd)"
227 wolf31o2 115 svcs="${svcs} $(check_svc ${X11} mkxf86config x-setup)"
228 wolf31o2 69
229 wolf31o2 140 ### TODO: make this baselayout-2 compatible
230 wolf31o2 141 ### TODO: make these checks accurate using service dependencies
231 wolf31o2 140
232 wolf31o2 69 echo ${svcs}
233     }
234    
235 wolf31o2 101 unpack_firmware() {
236     # This unpacks any firmware tarballs.
237     if [ -e /lib/firmware.tar.bz2 ]
238     then
239     ebegin "Unpacking hotplug firmware"
240     tar xjf /lib/firmware.tar.bz2 -C /lib/firmware
241     eend 0
242     fi
243     }
244    
245 wolf31o2 109 get_info() {
246     local tmp
247    
248     if [ ! -z "${1}" -a ! -z "${2}" ]
249     then
250 wolf31o2 112 tmp=$(grep "^$1[[:space:]]\+:" /proc/cpuinfo | head -n 1 | cut -d" " -f3-)
251 wolf31o2 114 eval "${2}='${tmp}'"
252 wolf31o2 109 fi
253     }
254    
255 wolf31o2 81 detect_mips() {
256 wolf31o2 109 get_info "cpu model" cpuinfo
257     get_info "system type" machinfo
258     cpuinfo="${cpuinfo%% FPU*}"
259 wolf31o2 79
260     case "${machinfo}" in
261     "SGI Indigo2")
262     case "${cpuinfo}" in
263     R4*)
264 wolf31o2 109 machinfo="SGI Indigo2" # I2 R4x00
265 wolf31o2 79 ;;
266     R8*)
267 wolf31o2 109 machinfo="SGI Indigo2 Power" # I2 R8000
268 wolf31o2 79 ;;
269     R10*)
270 wolf31o2 109 machinfo="SGI Indigo2 Impact" # I2 R10000
271 wolf31o2 79 ;;
272     esac
273     ;;
274     esac
275    
276 wolf31o2 109 PC="Detected an ${machinfo} w/ ${numcpu} ${cpuinfo} CPU(s)"
277 wolf31o2 79 }
278    
279 wolf31o2 109 detect_x86_amd64_ia64() {
280 wolf31o2 112 if [ "${1}" = "ia64" ]
281     then
282     get_info "family" cpuinfo
283     else
284     get_info "model name" cpuinfo
285     fi
286 wolf31o2 109 get_info "cpu MHz" mhz
287 wolf31o2 112 mhz="${mhz%%.*}MHz"
288 wolf31o2 79
289 wolf31o2 114 PC="Detected ${numcpu} ${cpuinfo} CPU(s) @ ${mhz}"
290 wolf31o2 81 }
291    
292 wolf31o2 98 detect_alpha() {
293 wolf31o2 109 get_info "platform string" machinfo
294     get_info "cpu" cpuinfo1
295     get_info "cpu model" cpuinfo2
296     get_info "cpus detected" numcpu
297    
298     PC="Detected ${numcpu} ${cpuinfo1} ${cpuinfo2} CPU(s) in a ${machinfo} system"
299 wolf31o2 98 }
300    
301 wolf31o2 89 detect_ppc() {
302 wolf31o2 109 get_info "cpu" cpuinfo
303     get_info "clock" mhz
304     get_info "detected as" machinfo
305     machinfo="${machinfo##*\(}"
306     machinfo="${machinfo%%\)*}"
307    
308 wolf31o2 89 local machtype=""
309    
310     case "${machinfo}" in
311 wolf31o2 120 "CHRP Pegasos2")
312     machtype="Pegasos 2"
313 wolf31o2 89 ;;
314 wolf31o2 120 "CHRP IBM,9124-720")
315     machtype="IBM OP720"
316 wolf31o2 90 ;;
317     "iBook 2 rev. 2")
318     machtype="Apple iBook G3"
319     ;;
320 wolf31o2 120 "iMac G5"*)
321     machtype="Apple iMac G5"
322     ;;
323     "MPC8241")
324     machtype="Kurobox"
325     ;;
326 wolf31o2 92 "PowerMac G5")
327     machtype="Apple PowerMac G5"
328     ;;
329 wolf31o2 90 "PowerMac G5 Dual Core")
330     machtype="Apple PowerMac G5 Dual Core"
331     ;;
332 wolf31o2 120 "PowerMac G4 AGP Graphics")
333     machtype="Apple PowerMac G4"
334     ;;
335     "PowerBook Titanium"|'PowerBook G4 15"')
336     machtype="Apple Powerbook G4"
337     ;;
338 wolf31o2 90 "Unknown Intrepid-based")
339     machtype="Apple Mac-Mini"
340     ;;
341 wolf31o2 89 *)
342     machtype="Unknown PPC System"
343     ;;
344     esac
345    
346 wolf31o2 109 PC="Detected a(n) ${machtype} w/ ${numcpu} ${cpuinfo} CPU(s)"
347 wolf31o2 89 }
348    
349 wolf31o2 109 detect_sparc() {
350     get_info "cpu" cpuinfo
351     get_info "ncpus active" numcpu
352     get_info "ncpus probed" numprobed
353    
354     PC="Detected ${numcpu} active ${cpuinfo} CPU(s) of ${numprobed} total"
355     }
356    
357 zhen 2 start() {
358 wolf31o2 69 echo "0" > /proc/sys/kernel/printk
359 wolf31o2 68 get_config
360 wolf31o2 130
361     # First off, we want hotplug/coldplug enabled, so let's re-enable it.
362 wolf31o2 139 # We do this even if we aren't starting up the hotplug/coldplug
363 wolf31o2 130 # services for the installer.
364     sed -i 's/RC_COLDPLUG="no"/RC_COLDPLUG="yes"/' /etc/conf.d/rc
365 wolf31o2 142
366     if [ "${BRLTTY}" = "yes" ]
367 wolf31o2 130 then
368 wolf31o2 142 [ -x /etc/init.d/brltty ] && start_service brltty
369 wolf31o2 130 fi
370    
371 wolf31o2 51 if [ "${DETECT}" = "yes" ]
372     then
373 wolf31o2 78 ebegin "Hardware detection started"
374 wolf31o2 112 local numcpu="$(grep -c '^processor[[:space:]]\+:' /proc/cpuinfo)"
375 wolf31o2 80 local arch="$(uname -m)"
376 wolf31o2 109
377 wolf31o2 81 case ${arch} in
378 wolf31o2 109 mips*)
379 wolf31o2 81 detect_mips
380 wolf31o2 109 ACPI="no"
381     APM="no"
382     IDEDMA="no"
383 wolf31o2 81 ;;
384 wolf31o2 113 i?86|x86_64)
385 wolf31o2 109 detect_x86_amd64_ia64
386 wolf31o2 81 ;;
387 wolf31o2 98 alpha)
388     detect_alpha
389 wolf31o2 109 ACPI="no"
390     APM="no"
391 wolf31o2 98 ;;
392 wolf31o2 109 sparc*)
393     detect_sparc
394     ACPI="no"
395     APM="no"
396     ;;
397 wolf31o2 98 powerpc*)
398     detect_ppc
399 wolf31o2 109 ACPI="no"
400     APM="no"
401 wolf31o2 98 ;;
402 wolf31o2 109 ia64)
403     detect_x86_amd64_ia64 "ia64"
404     APM="no"
405     ;;
406 wolf31o2 81 *)
407 wolf31o2 109 PC=
408 wolf31o2 81 ;;
409     esac
410 wolf31o2 109 [ -n "${PC}" ] && einfo "${PC}"
411 zhen 2 eend
412 wolf31o2 6 else
413 wolf31o2 78 ewarn "Hardware detection disabled via cmdline ..."
414 wolf31o2 6 fi
415 zhen 2
416 wolf31o2 142 # Now, we check if we're supposed to run a coldplug script.
417     if [ "${HOTPLUG}" = "yes" ]
418     then
419     # Check whether we should be using hotplug/coldplug or whether we should
420     # just let udev do it all.
421     if [ -x /etc/init.d/coldplug ]
422     then
423     start_service coldplug
424     elif [ -x /etc/init.d/hotplug ]
425     then
426     start_service hotplug
427     else
428     unpack_firmware
429     [ -x /sbin/udevtrigger ] && /sbin/udevtrigger
430     fi
431     [ -x /usr/sbin/hwsetup ] && hwsetup
432     else
433     ewarn "Hotplug/Coldplug disabled via cmdline ..."
434     fi
435    
436 wolf31o2 51 if [ "${APM}" = "yes" ]
437     then
438 wolf31o2 78 modprobe apm power_off=1 >/dev/null 2>&1 && \
439     einfo "APM BIOS found, power management functions enabled ..."
440 wolf31o2 77 [ -x /etc/init.d/apmd ] && start_service apmd
441 zhen 2 else
442 wolf31o2 109 einfo "Not Loading APM Bios support ..."
443 wolf31o2 6 fi
444 zhen 2
445 wolf31o2 51 if [ "${ACPI}" = "yes" ]
446     then
447 wolf31o2 78 modprobe processor >/dev/null 2>&1 && \
448     ebegin "ACPI power management functions enabled" && \
449     modprobe thermal >/dev/null
450 wolf31o2 29 modprobe fan >/dev/null 2>&1
451     modprobe button >/dev/null 2>&1
452     modprobe battery >/dev/null 2>&1
453     modprobe ac >/dev/null 2>&1
454 wolf31o2 131 modprobe thermal >/dev/null 2>&1
455     modprobe video >/dev/null 2>&1
456     modprobe dock >/dev/null 2>&1
457 wolf31o2 77 [ -x /etc/init.d/acpid ] && start_service acpid
458 wolf31o2 6 eend
459 wolf31o2 78 else
460 wolf31o2 109 einfo "Not Loading ACPI support ..."
461 wolf31o2 6 fi
462 zhen 2
463 wolf31o2 51 if [ "${IDEDMA}" = "yes" ]
464     then
465 wolf31o2 109 [ -x /etc/init.d/hdparm ] && start_service hdparm
466 wolf31o2 138 else
467     ewarn "Disabling IDE DMA support ..."
468 wolf31o2 49 fi
469    
470 wolf31o2 51 if [ "${PCMCIA}" = "yes" ]
471     then
472 wolf31o2 77 [ -x /etc/init.d/pcmcia ] && start_service pcmcia
473 wolf31o2 138 else
474     ewarn "PCMCIA disabled via cmdline ..."
475 wolf31o2 6 fi
476 zhen 2
477 wolf31o2 51 if [ "${DHCP}" = "no" ]
478     then
479 wolf31o2 48 sed -i -e '/^ifconfig_eth.*dhcp.*/ s/^/#/' \
480     -e '/^iface_eth.*dhcp.*/ s/^/#/' \
481 wolf31o2 55 -e '/^config_eth.*dhcp.*/ s/^/#/' \
482 wolf31o2 25 /etc/conf.d/net
483 wolf31o2 118 for i in `seq 0 4`
484     do
485 wolf31o2 139 echo "config_eth${i}=( \"none\" )" >> /etc/conf.d/net
486 wolf31o2 118 done
487 wolf31o2 138 ewarn "Skipping DHCP broadcast ..."
488 wolf31o2 6 fi
489 zhen 2
490 wolf31o2 78 # Read in what hwsetup has found
491 wolf31o2 139 [ -f /etc/sysconfig/gentoo ] && source /etc/sysconfig/gentoo
492 zhen 2
493 wolf31o2 6 # Mouse
494 wolf31o2 51 if [ -n "${MOUSE_DEVICE}" ]
495     then
496 wolf31o2 78 einfo "Mouse is ${HILITE}${MOUSE_FULLNAME}${NORMAL} at ${HILITE}${MOUSE_DEVICE}${NORMAL} ..."
497 wolf31o2 6 source /etc/sysconfig/mouse
498 wolf31o2 51 if [ -x /usr/sbin/gpm ]
499     then
500 wolf31o2 114 if [ $(grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm) ]
501 wolf31o2 110 then
502     sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm
503     else
504     echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm
505     fi
506 wolf31o2 78
507 wolf31o2 114 if [ $(grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm) ]
508 wolf31o2 110 then
509     sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm
510     else
511     echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm
512     fi
513 wolf31o2 78
514     [ "${GPM}" = "yes" ] \
515     && [ -x /etc/init.d/gpm ] && start_service gpm
516 wolf31o2 29 fi
517 wolf31o2 6 fi
518 zhen 2
519 wolf31o2 78 [ "${DETECT}" = "no" ] && DHCP="no"
520     [ "${DETECT}" = "yes" ] \
521     && NETDEVICES="$(awk -F: '/eth.:|tr.:|ath.:|wlan.:/{print $1}' /proc/net/dev 2>/dev/null)"
522 zhen 2
523 wolf31o2 51 if [ -n "${NETDEVICES}" ]
524     then
525 wolf31o2 74 for nics in ${NETDEVICES}
526     do
527     if [ "${DHCP}" = "yes" ]
528     then
529 wolf31o2 78 einfo "Network device ${HILITE}${nics}${NORMAL} detected, DHCP broadcasting for IP ..."
530 wolf31o2 135 if [ -f /var/run/dhcpcd-${nics}.pid ]
531     then
532 wolf31o2 137 if [ -z "$(/sbin/ifconfig ${nics} | grep 'inet addr')" ]
533 wolf31o2 135 then
534     kill $(cat /var/run/dhcpcd-${nics}.pid)
535     sleep 2
536     dhcpcd -n -h $(hostname) ${nics}
537     fi
538     fi
539 wolf31o2 74 fi
540     done
541 wolf31o2 138 [ "${NFS}" = "yes" ] \
542     && [ -x /etc/init.d/nfsmount ] && start_service nfsmount
543 wolf31o2 140 if [ "${PASSWD}" = "no" ]
544     then
545     echo "root:${PASSWORD}" | chpasswd > /dev/null 2>&1
546     else
547     start_service pwgen
548     fi
549 wolf31o2 138 if [ "${SSHD}" = "yes" ]
550     then
551 wolf31o2 140 # If we have passwd= on the command line, we don't run pwgen and we
552     # set the root password to PASSWORD.
553     if [ "${PASSWD}" = "yes" ]
554     then
555     ewarn "WARNING: You are starting sshd with a scrambled root password!!!"
556     ewarn "WARNING: You need to set a root password to be able to login remotely."
557     fi
558 wolf31o2 138 [ -x /etc/init.d/sshd ] && start_service sshd
559     fi
560 zhen 2 else
561 wolf31o2 78 ewarn "No Network device auto detected ..."
562 wolf31o2 6 fi
563 zhen 2
564 wolf31o2 68 if [ "${ALSA}" = "yes" ]
565 wolf31o2 51 then
566 wolf31o2 68 if [ -n "${SOUND_FULLNAME}" -o -n "${SOUND_DRIVER}" ]
567 wolf31o2 51 then
568 wolf31o2 78 local sndmsg="Soundcard:\n"
569    
570     [ -n "${SOUND_FULLNAME}" ] \
571     && sndmsg="${sndmsg} ${WARN}${SOUND_FULLNAME}\n"
572     [ -n "${SOUND_DRIVER}" ] \
573     && sndmsg="${sndmsg} driver = ${SOUND_DRIVER}\n"
574    
575     einfo "${sndmsg}"
576    
577 wolf31o2 70 if [ -x /etc/init.d/alsasound ]
578     then
579 wolf31o2 77 start_service alsasound
580 wolf31o2 70 fi
581 wolf31o2 78
582 wolf31o2 82 if [ -e /proc/asound/cards ]
583     then
584 wolf31o2 102 for i in $(cat /proc/asound/cards | awk '{print $1}' | grep ^[[:digit:]])
585 wolf31o2 82 do
586     if [ -d /proc/asound/card$i ] && [ -x /usr/bin/amixer ]
587     then
588     amixer -c $i scontrols > /etc/amixer
589     [ -n "$(grep Master /etc/amixer)" ] \
590     && amixer -c $i -q set Master 95% unmute \
591     >/dev/null 2>&1
592     [ -n "$(grep PCM /etc/amixer)" ] \
593     && amixer -c $i -q set PCM 95% unmute \
594     >/dev/null 2>&1
595     [ -n "$(grep Mic /etc/amixer)" ] \
596     && amixer -c $i -q set Mic 95% mute cap \
597     >/dev/null 2>&1
598     [ -n "$(grep Wave /etc/amixer)" ] \
599     && amixer -c $i -q set Wave 95% unmute \
600     >/dev/null 2>&1
601     [ -n "$(grep Capture /etc/amixer)" ] \
602     && amixer -c $i -q set Capture 95% unmute cap \
603     >/dev/null 2>&1
604     fi
605     done
606     fi
607 wolf31o2 15 fi
608 wolf31o2 68 else
609 wolf31o2 86 ewarn "Skipping ALSA detection as requested on command line ..."
610 wolf31o2 6 fi
611 zhen 2
612 wolf31o2 114 [ -n "${XDESC}" ] && einfo "VideoCard: ${HILITE}${XDESC}${NORMAL}"
613    
614 wolf31o2 102 if [ "${X11}" = "yes" ]
615 wolf31o2 76 then
616 wolf31o2 115 if [ -x /etc/init.d/mkxf86config ]
617     then
618     start_service mkxf86config
619     fi
620 wolf31o2 109 if [ -x /etc/init.d/x-setup ]
621     then
622     start_service x-setup
623     fi
624 wolf31o2 102 else
625     touch /etc/init.d/.noxdm
626 wolf31o2 76 fi
627    
628 wolf31o2 6 killall hwsetup 2>/dev/null
629     echo "6" > /proc/sys/kernel/printk
630 zhen 2 }
631 wolf31o2 6
632     # vim: ts=4

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20