diff options
author | yokota <yokota@FreeBSD.org> | 1998-03-23 06:08:55 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1998-03-23 06:08:55 +0000 |
commit | 8764cba6bd60e2d8a083417e54e8ce190590596c (patch) | |
tree | 249dacbf463bee43e77214990e888a58ed2603e8 /usr.sbin/sysinstall/mouse.c | |
parent | 9eca46b7d8b05e87fe1db62a74373dc7ddb9b7bc (diff) | |
download | FreeBSD-src-8764cba6bd60e2d8a083417e54e8ce190590596c.zip FreeBSD-src-8764cba6bd60e2d8a083417e54e8ce190590596c.tar.gz |
- Remove the notice that psm0 must be enabled before using the PS/2 mouse;
the device is enabled by default in the GENERIC kernel.
- Kill the mouse daemon, if any, when the user wants to disable it.
- Minor update on mouse menus.
Diffstat (limited to 'usr.sbin/sysinstall/mouse.c')
-rw-r--r-- | usr.sbin/sysinstall/mouse.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/mouse.c b/usr.sbin/sysinstall/mouse.c index 76d6c34..f02dcf9 100644 --- a/usr.sbin/sysinstall/mouse.c +++ b/usr.sbin/sysinstall/mouse.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mouse.c,v 1.2 1998/03/10 13:42:05 jkh Exp $ + * $Id: mouse.c,v 1.3 1998/03/23 05:59:18 jkh Exp $ */ #include "sysinstall.h" @@ -57,8 +57,8 @@ mousedTest(dialogMenuItem *self) ret = msgYesNo("Now move the mouse and see if it works.\n" "(Note that buttons don't have any effect for now.)\n\n" " Is the mouse cursor moving?\n"); + systemExecute("vidcontrol -m off"); if (ret) { - systemExecute("vidcontrol -m off"); if (file_readable("/var/run/moused.pid")) vsystem("kill `cat /var/run/moused.pid`"); variable_set2(VAR_MOUSED, "NO"); @@ -69,3 +69,15 @@ mousedTest(dialogMenuItem *self) return DITEM_SUCCESS; } + +int +mousedDisable(dialogMenuItem *self) +{ + if (file_readable("/var/run/moused.pid")) + vsystem("kill `cat /var/run/moused.pid`"); + variable_set2(VAR_MOUSED, "NO"); + variable_set2(VAR_MOUSED_TYPE, "NO"); + variable_unset(VAR_MOUSED_PORT); + msgConfirm("The mouse daemon is disabled."); + return DITEM_SUCCESS; +} |