moused revision 103019
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 103019 2002-09-06 16:18:05Z gordon $ 5# 6 7# PROVIDE: moused 8# REQUIRE: DAEMON 9# KEYWORD: FreeBSD NetBSD 10 11. /etc/rc.subr 12 13name=moused 14rcvar=`set_rcvar` 15 16case ${OSTYPE} in 17FreeBSD) 18 start_cmd="moused_start" 19 ;; 20NetBSD) 21 command="/usr/sbin/${name}" 22 ;; 23esac 24 25moused_start() 26{ 27 echo -n 'Starting moused:' 28 /usr/sbin/moused ${moused_flags} -p ${moused_port} -t ${moused_type} 29 30 _mousechar_arg= 31 case ${mousechar_start} in 32 [Nn][Oo] | '') 33 ;; 34 *) 35 echo -n ' mousechar_start' 36 _mousechar_arg="-M ${mousechar_start}" 37 ;; 38 esac 39 40 for ttyv in /dev/ttyv* ; do 41 vidcontrol < ${ttyv} ${_mousechar_arg} -m on 42 done 43 echo '.' 44} 45 46load_rc_config $name 47run_rc_command "$1" 48