diff options
Diffstat (limited to 'devel/linux-js/files/linux_js.in')
-rw-r--r-- | devel/linux-js/files/linux_js.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/linux-js/files/linux_js.in b/devel/linux-js/files/linux_js.in new file mode 100644 index 000000000000..b8642becf2a9 --- /dev/null +++ b/devel/linux-js/files/linux_js.in @@ -0,0 +1,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" |