moused revision 126744
1#!/bin/sh 2# 3# $NetBSD: moused,v 1.1 2001/10/29 23:25:01 augustss Exp $ 4# $FreeBSD: head/etc/rc.d/moused 126744 2004-03-08 12:25:05Z pjd $ 5# 6 7# PROVIDE: moused 8# REQUIRE: DAEMON 9# KEYWORD: FreeBSD nojail 10 11. /etc/rc.subr 12 13name=moused 14rcvar=`set_rcvar` 15command="/usr/sbin/${name}" 16start_cmd="moused_start" 17 18moused_start() 19{ 20 echo -n 'Starting moused:' 21 /usr/sbin/moused ${moused_flags} -p ${moused_port} -t ${moused_type} 22 23 _mousechar_arg= 24 case ${mousechar_start} in 25 [Nn][Oo] | '') 26 ;; 27 *) 28 echo -n ' mousechar_start' 29 _mousechar_arg="-M ${mousechar_start}" 30 ;; 31 esac 32 33 for ttyv in /dev/ttyv* ; do 34 vidcontrol < ${ttyv} ${_mousechar_arg} -m on 35 done 36 echo '.' 37} 38 39load_rc_config $name 40run_rc_command "$1" 41