summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-01-20 10:00:55 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-01-20 10:00:55 +0000
commitb59d5169f77fa0834a946e59ad4cc7742281edad (patch)
tree5b93ae33e41a4a83bae67bdac4f41b1be786aa14 /sys-libs
parentfix sandbox violations (diff)
downloadgentoo-2-b59d5169f77fa0834a946e59ad4cc7742281edad.tar.gz
gentoo-2-b59d5169f77fa0834a946e59ad4cc7742281edad.tar.bz2
gentoo-2-b59d5169f77fa0834a946e59ad4cc7742281edad.zip
resolve bug #220
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/gpm/files/gpm.conf.d7
-rw-r--r--sys-libs/gpm/files/gpm.rc610
2 files changed, 15 insertions, 2 deletions
diff --git a/sys-libs/gpm/files/gpm.conf.d b/sys-libs/gpm/files/gpm.conf.d
index 089c75406002..7fd160d2c8ca 100644
--- a/sys-libs/gpm/files/gpm.conf.d
+++ b/sys-libs/gpm/files/gpm.conf.d
@@ -5,3 +5,10 @@
#MOUSE=ps2
#MOUSEDEV=/dev/psaux
+
+# Extra settings
+
+#RESPONSIVENESS=
+#REPEAT_TYPE=raw
+#APPEND="-g 1 -A 60"
+
diff --git a/sys-libs/gpm/files/gpm.rc6 b/sys-libs/gpm/files/gpm.rc6
index 451f01d30b2e..49f17dc4c507 100644
--- a/sys-libs/gpm/files/gpm.rc6
+++ b/sys-libs/gpm/files/gpm.rc6
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/files/gpm.rc6,v 1.6 2001/12/23 23:25:19 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/gpm/files/gpm.rc6,v 1.7 2002/01/20 10:00:55 azarah Exp $
#NB: Config is in /etc/conf.d/gpm
@@ -19,9 +19,15 @@ checkconfig() {
start() {
checkconfig || return 1
+
+ local params=""
+ [ -n "$RESPONSIVENESS" ] && params="$params -r $RESPONSIVENESS"
+ [ -n "$REPEAT_TYPE" ] && params="$params -R$REPEAT_TYPE"
+ [ -n "$APPEND" ] && params="$params $APPEND "
+
ebegin "Starting gpm"
start-stop-daemon --start --quiet --exec /usr/sbin/gpm \
- -- -m ${MOUSEDEV} -t ${MOUSE}
+ -- -m ${MOUSEDEV} -t ${MOUSE} ${params}
eend ${?}
}