Commit 503fab4a authored by dougb's avatar dougb
Browse files

Remove a bogus use of USE_RCORDER, and while I'm here move the files

*.sh.in -> *.in, and tune them up.
parent 488bd92e
......@@ -19,7 +19,7 @@ PROGRAMS= jscal jstest
MAN1= ${PROGRAMS:S|$|.1|}
MAN4= linux_js.4
PORTDOCS= joystick-api.txt
USE_RCORDER= jscal.sh linux_js.sh
USE_RC_SUBR= jscal linux_js
OPTIONS_DEFINE= LINUX JOY UHID DOCS
OPTIONS_DEFAULT= LINUX JOY UHID
......
#!/bin/sh
# $FreeBSD$
# $FreeBSD$
#
# PROVIDE: jscal
# REQUIRE: linux_js
# KEYWORD: shutdown
jscal_enable=${jscal_enable-"NO"}
jscal_devices="${jscal_devices:-/dev/input/js*}"
jscal_state="${jscal_state:-/var/db/jscal-state}"
. /etc/rc.subr
name="jscal"
name=jscal
rcvar=jscal_enable
load_rc_config $name
jscal_enable=${jscal_enable:-"NO"}
jscal_devices="${jscal_devices:-/dev/input/js*}"
jscal_state="${jscal_state:-/var/db/jscal-state}"
command="%%PREFIX%%/bin/jscal"
start_cmd="jscal_start"
stop_cmd="jscal_stop"
......@@ -38,5 +42,4 @@ jscal_stop()
done
}
load_rc_config $name
run_rc_command "$1"
#!/bin/sh
# $FreeBSD$
# $FreeBSD$
#
# PROVIDE: linux_js
# REQUIRE: LOGIN
# KEYWORD: shutdown
linux_js_enable=${linux_js_enable-"NO"}
. /etc/rc.subr
name="linux_js"
name=linux_js
rcvar=linux_js_enable
start_cmd="linux_js_start"
stop_cmd="linux_js_stop"
linux_js_start()
{
echo "Starting ${name}."
kldload linux_js
}
load_rc_config $name
linux_js_enable=${linux_js_enable:-"NO"}
start_cmd="load_kld -m linux_js"
stop_cmd="linux_js_stop"
linux_js_stop()
{
......@@ -25,5 +24,4 @@ linux_js_stop()
kldunload linux_js
}
load_rc_config $name
run_rc_command "$1"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment