diff options
Diffstat (limited to 'app-misc/mouseremote/files/mouseremote.start')
-rw-r--r-- | app-misc/mouseremote/files/mouseremote.start | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-misc/mouseremote/files/mouseremote.start b/app-misc/mouseremote/files/mouseremote.start new file mode 100644 index 0000000..37e7bb1 --- /dev/null +++ b/app-misc/mouseremote/files/mouseremote.start @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/mouseremote/files/mouseremote.start,v 1.4 2004/07/14 21:33:40 agriffis Exp $ + +depend() { + use modules logger + before xdm +} + +checkconfig() { + [ -z "$DEV" ] || [ -z "$DRV" ] || return 0 + eerror "You need to setup DEV and DRV in /etc/conf.d/mouseremote first" + return 1 +} + +start() { + checkconfig || return 1 + + ebegin "Starting X10 MouseRemote Server" + /usr/sbin/multimoused -${DRV} ${DEV} 2> /dev/null + eend $? +} + +stop() { + ebegin "Stopping X10 MouseRemote Server" + kill $(cat /var/lock/MultiMouse.pid) + eend ${?} "Failed to stop MouseRemote Server" +} |