/[livecd-tools]/trunk/autoconfig
Gentoo

Diff of /trunk/autoconfig

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

Revision 26 Revision 27
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.15 2005/01/28 16:43:28 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/autoconfig,v 1.16 2005/01/28 18:47:11 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"
96 # Mouse 96 # Mouse
97 if [ -n "${MOUSE_DEVICE}" ]; then 97 if [ -n "${MOUSE_DEVICE}" ]; then
98 ebegin ${GOOD}"Mouse is ${HILITE}${MOUSE_FULLNAME}${GOOD} at ${HILITE}${MOUSE_DEVICE}${NORMAL}" 98 ebegin ${GOOD}"Mouse is ${HILITE}${MOUSE_FULLNAME}${GOOD} at ${HILITE}${MOUSE_DEVICE}${NORMAL}"
99 source /etc/sysconfig/mouse 99 source /etc/sysconfig/mouse
100 if [ -x /usr/sbin/gpm ]; then 100 if [ -x /usr/sbin/gpm ]; then
101 if [ "grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm" ]; then 101 if [ `grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm` ]; then
102 sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm 102 sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm
103 else 103 else
104 echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm 104 echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm
105 fi 105 fi
106 if [ "grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm" ]; then 106 if [ `grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm` ]; then
107 sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm 107 sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm
108 else 108 else
109 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm 109 echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm
110 fi 110 fi
111 if [ "$GPM" = "yes" ]; then 111 if [ "$GPM" = "yes" ]; then

Legend:
Removed from v.26  
changed lines
  Added in v.27

  ViewVC Help
Powered by ViewVC 1.1.20