/usr/src/etc/rc.d/moused patch
Sascha Wildner
saw at online.de
Wed Apr 28 10:27:37 PDT 2004
walt wrote:
You see something different?
No, but I thought I had seen something different...Apologies...
OK, last one, hopefully: We need to turn off the mouse pointer in
stop_cmd as well. Please apply attached patch to a virgin moused file. :)
Regards,
Sascha
--
http://yoyodyne.ath.cx
*** /usr/src/etc/rc.d/moused Wed Apr 28 19:18:51 2004
--- /usr/s/src/etc/rc.d/moused Wed Apr 28 19:21:33 2004
***************
*** 15,20 ****
--- 15,26 ----
rcvar=`set_rcvar`
command="/usr/sbin/${name}"
start_cmd="moused_start"
+ stop_cmd="moused_stop"
+ sig_stop="-INT"
+
+ # stdin must be redirected because it might be for a serial console
+ #
+ viddev=/dev/ttyv0
moused_start()
{
***************
*** 31,41 ****
;;
esac
! for ttyv in /dev/ttyv* ; do
! vidcontrol < ${ttyv} ${_mousechar_arg} -m on
! done
echo '.'
}
load_rc_config $name
run_rc_command "$1"
--- 37,58 ----
;;
esac
! vidcontrol < ${viddev} ${_mousechar_arg} -m on
!
echo '.'
}
+ moused_stop()
+ {
+ pids="`check_process $command`"
+ if [ -n "$pids" ]; then
+ for pid in $pids; do
+ kill $sig_stop $pid
+ done
+ fi
+
+ vidcontrol < ${viddev} -m off
+ }
+
load_rc_config $name
run_rc_command "$1"
More information about the Submit
mailing list