/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 48 Revision 49
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.24 2005/04/26 14:38:48 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.25 2005/05/12 13:04:27 wolf31o2 Exp $
5 5
6echo "0" > /proc/sys/kernel/printk 6echo "0" > /proc/sys/kernel/printk
7DHCP="yes" 7DHCP="yes"
8DETECT="yes" 8DETECT="yes"
9GPM="yes" 9GPM="yes"
10PCMCIA="no" 10PCMCIA="no"
11HOTPLUG="yes" 11HOTPLUG="yes"
12APM="no" 12APM="no"
13ACPI="no" 13ACPI="no"
14IDEDMA="yes"
14CMDLINE="`cat /proc/cmdline`" 15CMDLINE="`cat /proc/cmdline`"
15for x in ${CMDLINE} ; do 16for x in ${CMDLINE} ; do
16 if [ "${x}" = "nodetect" ]; then 17 if [ "${x}" = "nodetect" ]; then
17 DETECT="no" 18 DETECT="no"
18 GPM="no" 19 GPM="no"
41 if [ "${x}" = "acpi=on" -o "${x}" = "acpi=force" ]; then 42 if [ "${x}" = "acpi=on" -o "${x}" = "acpi=force" ]; then
42 APM="no" 43 APM="no"
43 ACPI="yes" 44 ACPI="yes"
44 fi 45 fi
45 46
47 if [ "${x}" = "ide=nodma" ]; then
48 IDEDMA="no"
49 fi
50
46 if [ "${x}" = "nohotplug" ]; then 51 if [ "${x}" = "nohotplug" ]; then
47 HOTPLUG="no" 52 HOTPLUG="no"
48 fi 53 fi
49done 54done
50 55
80 modprobe button >/dev/null 2>&1 85 modprobe button >/dev/null 2>&1
81 modprobe battery >/dev/null 2>&1 86 modprobe battery >/dev/null 2>&1
82 modprobe ac >/dev/null 2>&1 87 modprobe ac >/dev/null 2>&1
83 [ -x /etc/init.d/acpid ] && /etc/init.d/acpid start 88 [ -x /etc/init.d/acpid ] && /etc/init.d/acpid start
84 eend 89 eend
90 fi
91
92 if [ "${IDEDMA}" = "yes" ]; then
93 [ -x /etc/init.d/hdparm ] && /etc/init.d/hdparm start
85 fi 94 fi
86 95
87 if [ "${PCMCIA}" = "yes" ]; then 96 if [ "${PCMCIA}" = "yes" ]; then
88 ebegin ${HILITE} "PCMCIA enabled via cmdline" 97 ebegin ${HILITE} "PCMCIA enabled via cmdline"
89 /etc/init.d/pcmcia start 98 /etc/init.d/pcmcia start

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

  ViewVC Help
Powered by ViewVC 1.1.20