1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/devel/linux-js/files/linux_js.sh.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

30 lines
382 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: linux_js
# KEYWORD: shutdown
linux_js_enable=${linux_js_enable-"NO"}
. /etc/rc.subr
name="linux_js"
rcvar=`set_rcvar`
start_cmd="linux_js_start"
stop_cmd="linux_js_stop"
linux_js_start()
{
echo "Starting ${name}."
kldload linux_js
}
linux_js_stop()
{
echo "Stopping ${name}."
kldunload linux_js
}
load_rc_config $name
run_rc_command "$1"