Deleted Added
full compact
moused (197947) moused (230099)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/moused 197947 2009-10-10 22:17:03Z dougb $
3# $FreeBSD: head/etc/rc.d/moused 230099 2012-01-14 02:18:41Z dougb $
4#
5
6# PROVIDE: moused
7# REQUIRE: DAEMON cleanvar
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11
12name="moused"
4#
5
6# PROVIDE: moused
7# REQUIRE: DAEMON cleanvar
8# KEYWORD: nojail shutdown
9
10. /etc/rc.subr
11
12name="moused"
13rcvar=`set_rcvar`
13rcvar="moused_enable"
14command="/usr/sbin/${name}"
15start_cmd="moused_start"
16pidprefix="/var/run/moused"
17pidfile="${pidprefix}.pid"
18pidarg=
19load_rc_config $name
20
21# Set the pid file and variable name. The second argument, if it exists, is
22# expected to be the mouse device.
23#
24if [ -n "$2" ]; then
25 eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}}
14command="/usr/sbin/${name}"
15start_cmd="moused_start"
16pidprefix="/var/run/moused"
17pidfile="${pidprefix}.pid"
18pidarg=
19load_rc_config $name
20
21# Set the pid file and variable name. The second argument, if it exists, is
22# expected to be the mouse device.
23#
24if [ -n "$2" ]; then
25 eval moused_$2_enable=\${moused_$2_enable-${moused_nondefault_enable}}
26 rcvar=`set_rcvar moused_$2`
26 rcvar="moused_${2}_enable"
27 pidfile="${pidprefix}.$2.pid"
28 pidarg="-I $pidfile"
29fi
30
31moused_start()
32{
33 local ms myflags myport mytype
34

--- 38 unchanged lines hidden ---
27 pidfile="${pidprefix}.$2.pid"
28 pidarg="-I $pidfile"
29fi
30
31moused_start()
32{
33 local ms myflags myport mytype
34

--- 38 unchanged lines hidden ---