diff options
author | 2011-02-10 21:05:50 +0000 | |
---|---|---|
committer | 2011-02-10 21:05:50 +0000 | |
commit | 619787709641e3c9a800354497f0da01fe3cc792 (patch) | |
tree | e36396b3ac93b7b7e1b127edc18dc4dc1672a889 | |
parent | Unmute Speaker control (for Gentoo bug #292437) (diff) | |
download | livecd-tools-619787709641e3c9a800354497f0da01fe3cc792.tar.gz livecd-tools-619787709641e3c9a800354497f0da01fe3cc792.tar.bz2 livecd-tools-619787709641e3c9a800354497f0da01fe3cc792.zip |
Add conversion of GPM as first example for BL2 work.
-rwxr-xr-x | autoconfig | 24 | ||||
-rw-r--r-- | autoconfig-init.d-addons/autoconfig-gpm-pre | 36 |
2 files changed, 39 insertions, 21 deletions
@@ -504,29 +504,11 @@ start() { [ -f /etc/sysconfig/gentoo ] && source /etc/sysconfig/gentoo # Mouse + # FIXME: If MOUSE_DEVICE is empty, we actually do not want to do anything, not even start gpm. if [ -n "${MOUSE_DEVICE}" ] then - einfo "Mouse is ${HILITE}${MOUSE_FULLNAME}${NORMAL} at ${HILITE}${MOUSE_DEVICE}${NORMAL} ..." - source /etc/sysconfig/mouse - if [ -x /usr/sbin/gpm ] - then - if [ $(grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm) ] - then - sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm - else - echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm - fi - - if [ $(grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm) ] - then - sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm - else - echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm - fi - - [ "${GPM}" = "yes" ] \ - && [ -x /etc/init.d/gpm ] && /etc/init.d/gpm start - fi + : + # Migrated to autoconfig-gpm-pre fi [ "${DETECT}" = "no" ] && DHCP="no" diff --git a/autoconfig-init.d-addons/autoconfig-gpm-pre b/autoconfig-init.d-addons/autoconfig-gpm-pre new file mode 100644 index 0000000..af52b0e --- /dev/null +++ b/autoconfig-init.d-addons/autoconfig-gpm-pre @@ -0,0 +1,36 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Do one of the following: +# Add to /etc/rc.conf: rc_gpm_need="autoconfig-gpm-pre" +# XOR +# Add to /etc/conf.d/gpm: rc_need="autoconfig-gpm-pre" + +depend() { + before gpm + need hwsetup +} + +start() { + # FIXME: If MOUSE_DEVICE is empty, we actually do not want to do anything, not even start gpm. + # created by hwsetup + source /etc/sysconfig/gentoo + source /etc/sysconfig/mouse + einfo "Mouse is ${HILITE}${MOUSE_FULLNAME}${NORMAL} at ${HILITE}${MOUSE_DEVICE}${NORMAL} ..." + + if [ $(grep "#MOUSE=${MOUSETYPE}" /etc/conf.d/gpm) ]; then + sed -i "\@MOUSE=${MOUSETYPE}@s@^#@@" /etc/conf.d/gpm + else + echo "MOUSE=${MOUSETYPE}" >>/etc/conf.d/gpm + fi + + if [ $(grep "#MOUSEDEV=${DEVICE}" /etc/conf.d/gpm) ]; then + sed -i "\@MOUSEDEV=${DEVICE}@s@^#@@" /etc/conf.d/gpm + else + echo "MOUSEDEV=${DEVICE}" >>/etc/conf.d/gpm + fi +} + +# vim: ft=gentoo-init-d: |