Re: /usr/src/etc/rc.d/moused patch

看板DFBSD_submit作者時間21年前 (2004/04/29 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/10 (看更多)
This is a multi-part message in MIME format. --------------070900060302040300050506 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 --------------070900060302040300050506 Content-Type: text/plain; name="patch.moused" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch.moused" *** /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" --------------070900060302040300050506--
文章代碼(AID): #10a68H00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #10a68H00 (DFBSD_submit)