freebsd-ports/devel/linux-js/files/linux_js.sh.in
Jean-Yves Lefort cf56974241 Version 2.0:
- USB joystick support has been added
  - Calling select() with a large timeout did not work properly: fixed
  - Short reads (< sizeof(struct js_event)) did not work: fixed
  - The JSIOCGCORR/JSCIOCSCORR ioctls now handle all the axes
  - Each joystick is now presented as a separate js device
  - A manual page has been added
2006-03-21 16:03:50 +00:00

29 lines
381 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: linux_js
# KEYWORD: shutdown
linux_js_enable=${linux_js_enable-"NO"}
. %%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"