/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 23 Revision 24
1#!/sbin/runscript 1#!/sbin/runscript
2# Copyright 1999-2002 Gentoo Technologies, Inc. 2# Copyright 1999-2002 Gentoo Technologies, Inc.
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.12 2004/12/14 23:51:28 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.13 2005/01/24 21:00:21 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"
9PCMCIA="no" 10PCMCIA="no"
10HOTPLUG="yes" 11HOTPLUG="yes"
11APM="no" 12APM="no"
12ACPI="no" 13ACPI="no"
13CMDLINE="`cat /proc/cmdline`" 14CMDLINE="`cat /proc/cmdline`"
14for x in ${CMDLINE} ; do 15for x in ${CMDLINE} ; do
15 if [ "${x}" = "nodetect" ]; then 16 if [ "${x}" = "nodetect" ]; then
16 DETECT="no" 17 DETECT="no"
18 GPM="no"
17 HOTPLUG="no" 19 HOTPLUG="no"
18 APM="no" 20 APM="no"
19 ACPI="no" 21 ACPI="no"
20 fi 22 fi
21 23
95 97
96 # Mouse 98 # Mouse
97 if [ -n "${MOUSE_DEVICE}" ]; then 99 if [ -n "${MOUSE_DEVICE}" ]; then
98 ebegin ${GOOD}"Mouse is ${HILITE}${MOUSE_FULLNAME}${GOOD} at ${HILITE}${MOUSE_DEVICE}${NORMAL}" 100 ebegin ${GOOD}"Mouse is ${HILITE}${MOUSE_FULLNAME}${GOOD} at ${HILITE}${MOUSE_DEVICE}${NORMAL}"
99 source /etc/sysconfig/mouse 101 source /etc/sysconfig/mouse
100 [ -x /usr/sbin/gpm ] && gpm -m "${MOUSE_DEVICE}" -t "${MOUSETYPE}" 102 if [ -x /usr/sbin/gpm ]; then
103 if [ "grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm" ]; then
104 sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm
105 else
106 echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm
107 fi
108 if [ "grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm" ]; then
109 sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm
110 else
111 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm
112 fi
113 if [ "$GPM" = "yes" ]; then
114 /etc/init.d/gpm start
115 fi
101 eend 116 eend
102 fi 117 fi
103 118
104 if [ "${HOTPLUG}" = "yes" ]; then 119 if [ "${HOTPLUG}" = "yes" ]; then
105 #Check whether we should be using hotplug or coldplug 120 #Check whether we should be using hotplug or coldplug

Legend:
Removed from v.23  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.20