summaryrefslogtreecommitdiff
path: root/devel/linux-js/files/linux_js.in
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-08-05 20:46:40 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-08-05 20:46:40 +0000
commit6662c6791c6dd1957de00e402045b82a0aad76d5 (patch)
tree1734810f8ca3ff0fae4f04b0c8fa0afb97acd2a3 /devel/linux-js/files/linux_js.in
parentqpdfview is a tabbed PDF viewer using the poppler library. (diff)
Remove a bogus use of USE_RCORDER, and while I'm here move the files
*.sh.in -> *.in, and tune them up.
Notes
Notes: svn path=/head/; revision=302134
Diffstat (limited to 'devel/linux-js/files/linux_js.in')
-rw-r--r--devel/linux-js/files/linux_js.in27
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"