1 | #!/sbin/runscript |
1 | #!/sbin/runscript |
2 | # Copyright 1999-2005 Gentoo Foundation |
2 | # Copyright 1999-2005 Gentoo Foundation |
3 | # Distributed under the terms of the GNU General Public License v2 |
3 | # Distributed under the terms of the GNU General Public License v2 |
4 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.57 2006/04/23 17:06:38 wolf31o2 Exp $ |
4 | # $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.58 2006/05/19 23:52:00 wolf31o2 Exp $ |
5 | |
5 | |
6 | DHCP="yes" |
6 | DHCP="yes" |
7 | DETECT="yes" |
7 | DETECT="yes" |
8 | GPM="yes" |
8 | GPM="yes" |
9 | PCMCIA="no" |
9 | PCMCIA="no" |
… | |
… | |
93 | svcs="${svcs} $(check_svc ${GPM} gpm)" |
93 | svcs="${svcs} $(check_svc ${GPM} gpm)" |
94 | svcs="${svcs} $(check_svc ${HOTPLUG} coldplug hotplug)" |
94 | svcs="${svcs} $(check_svc ${HOTPLUG} coldplug hotplug)" |
95 | svcs="${svcs} $(check_svc ${ALSA} alsasound)" |
95 | svcs="${svcs} $(check_svc ${ALSA} alsasound)" |
96 | |
96 | |
97 | echo ${svcs} |
97 | echo ${svcs} |
|
|
98 | } |
|
|
99 | |
|
|
100 | unpack_firmware() { |
|
|
101 | # This unpacks any firmware tarballs. |
|
|
102 | # This has been moved here from coldplug, but might not be very effective |
|
|
103 | # since udev does coldplugging in 089 and higher. |
|
|
104 | if [ -e /lib/firmware.tar.bz2 ] |
|
|
105 | then |
|
|
106 | ebegin "Unpacking hotplug firmware" |
|
|
107 | tar xjf /lib/firmware.tar.bz2 -C /lib/firmware |
|
|
108 | eend 0 |
|
|
109 | fi |
98 | } |
110 | } |
99 | |
111 | |
100 | # Only used on SGI CDs, this determines: |
112 | # Only used on SGI CDs, this determines: |
101 | # A) CPU Type |
113 | # A) CPU Type |
102 | # B) System |
114 | # B) System |
… | |
… | |
321 | then |
333 | then |
322 | start_service coldplug |
334 | start_service coldplug |
323 | elif [ -x /etc/init.d/hotplug ] |
335 | elif [ -x /etc/init.d/hotplug ] |
324 | then |
336 | then |
325 | start_service hotplug |
337 | start_service hotplug |
|
|
338 | else |
|
|
339 | unpack_firmware |
326 | fi |
340 | fi |
327 | else |
341 | else |
328 | ewarn "Hotplug disabled via cmdline ..." |
342 | ewarn "Hotplug disabled via cmdline ..." |
329 | fi |
343 | fi |
330 | |
344 | |