diff options
Diffstat (limited to 'nonsystemd/gpm-openrc/gpm.initd')
-rw-r--r-- | nonsystemd/gpm-openrc/gpm.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nonsystemd/gpm-openrc/gpm.initd b/nonsystemd/gpm-openrc/gpm.initd new file mode 100644 index 000000000..4d06adbd4 --- /dev/null +++ b/nonsystemd/gpm-openrc/gpm.initd @@ -0,0 +1,28 @@ +#!/usr/bin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +#NB: Config is in /etc/conf.d/gpm + +command=/usr/bin/gpm +command_args=" + -m ${MOUSEDEV} + -t ${MOUSE} + ${RESPONSIVENESS:+ -r ${RESPONSIVENESS}} + ${REPEAT_TYPE:+ -R${REPEAT_TYPE}} + ${APPEND} +" + +pidfile=/var/run/gpm.pid + +depend() { + need localmount + use hotplug logger +} + +start_pre() { + if [ -z "${MOUSEDEV}" ] || [ -z "${MOUSE}" ] ; then + eerror "You need to setup MOUSEDEV and MOUSE in /etc/conf.d/gpm first" + return 1 + fi +} |