mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
1d6b4b3f91
s#. %%RC_SUBR%%#. /etc/rc.subr#
30 lines
382 B
Bash
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"
|