summaryrefslogtreecommitdiff
path: root/devel/linux-js/files/linux_js.in
blob: b8642becf2a98bfb2666f85b936c22f56f895f23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

# $FreeBSD$
#
# PROVIDE: linux_js
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name=linux_js
rcvar=linux_js_enable

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()
{
	echo "Stopping ${name}."
	kldunload linux_js
}

run_rc_command "$1"