From 88c394688ee9e9edd7a71bb71a0fb265b10ae7dd Mon Sep 17 00:00:00 2001 From: hasufell Date: Wed, 26 Aug 2015 19:02:14 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- init.d/._cfg0000_gpm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 init.d/._cfg0000_gpm diff --git a/init.d/._cfg0000_gpm b/init.d/._cfg0000_gpm new file mode 100755 index 0000000..7f73527 --- /dev/null +++ b/init.d/._cfg0000_gpm @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +#NB: Config is in /etc/conf.d/gpm + +command=/usr/sbin/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 +}