moused (140339) | moused (158692) |
---|---|
1#!/bin/sh 2# 3# $NetBSD: moused,v 1.1 2001/10/29 23:25:01 augustss Exp $ | 1#!/bin/sh 2# 3# $NetBSD: moused,v 1.1 2001/10/29 23:25:01 augustss Exp $ |
4# $FreeBSD: head/etc/rc.d/moused 140339 2005-01-16 03:12:03Z obrien $ | 4# $FreeBSD: head/etc/rc.d/moused 158692 2006-05-17 11:37:09Z matteo $ |
5# 6 7# PROVIDE: moused 8# REQUIRE: DAEMON cleanvar 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 --- 5 unchanged lines hidden (view full) --- 18pidfile="${_pidprefix}.pid" 19_pidarg= 20load_rc_config $name 21 22# Set the pid file and variable name. The second argument, if it exists, is 23# expected to be the mouse device. 24# 25if [ -n "$2" ]; then | 5# 6 7# PROVIDE: moused 8# REQUIRE: DAEMON cleanvar 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 --- 5 unchanged lines hidden (view full) --- 18pidfile="${_pidprefix}.pid" 19_pidarg= 20load_rc_config $name 21 22# Set the pid file and variable name. The second argument, if it exists, is 23# expected to be the mouse device. 24# 25if [ -n "$2" ]; then |
26 checkyesno moused_nondefault_enable && 27 eval moused_$2_enable=\${moused_$2_enable-YES} | 26 eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}} |
28 rcvar=`set_rcvar moused_$2` 29 pidfile="${_pidprefix}.$2.pid" 30 _pidarg="-I $pidfile" 31fi 32 33moused_start() 34{ 35 local ms myflags myport mytype --- 40 unchanged lines hidden --- | 27 rcvar=`set_rcvar moused_$2` 28 pidfile="${_pidprefix}.$2.pid" 29 _pidarg="-I $pidfile" 30fi 31 32moused_start() 33{ 34 local ms myflags myport mytype --- 40 unchanged lines hidden --- |