summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/mouse.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-03-10 13:42:05 +0000
committerjkh <jkh@FreeBSD.org>1998-03-10 13:42:05 +0000
commit8469212ae0c01067dc162f45c54876bb95f3f79e (patch)
tree4f1484a38ddcd67b0f452944fce230909ae2b572 /release/sysinstall/mouse.c
parenta194b78bd292dd13f17cfe65c12fb5dee1bb9392 (diff)
downloadFreeBSD-src-8469212ae0c01067dc162f45c54876bb95f3f79e.zip
FreeBSD-src-8469212ae0c01067dc162f45c54876bb95f3f79e.tar.gz
MF22: installEnvironment() fix, reshuffle, vidcontrol on correct vty.
Diffstat (limited to 'release/sysinstall/mouse.c')
-rw-r--r--release/sysinstall/mouse.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/release/sysinstall/mouse.c b/release/sysinstall/mouse.c
index c7b6c19..c95f991 100644
--- a/release/sysinstall/mouse.c
+++ b/release/sysinstall/mouse.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: mouse.c,v 1.1 1998/03/07 08:59:28 jkh Exp $
*/
#include "sysinstall.h"
@@ -49,19 +49,21 @@ mousedTest(dialogMenuItem *self)
}
msgNotify("Trying to start the mouse daemon...");
- vsystem("kill `cat /var/run/moused.pid`");
- vsystem("vidcontrol -m on");
+ if (file_readable("/var/run/moused.pid"))
+ vsystem("kill `cat /var/run/moused.pid`");
+ systemExecute("vidcontrol -m on");
vsystem("moused -t %s -p %s", type, port);
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");
if (ret) {
- vsystem("vidcontrol -m off");
- vsystem("kill `cat /var/run/moused.pid`");
- variable_set(VAR_MOUSED "=NO");
+ systemExecute("vidcontrol -m off");
+ if (file_readable("/var/run/moused.pid"))
+ vsystem("kill `cat /var/run/moused.pid`");
+ variable_set2(VAR_MOUSED, "NO");
} else {
- variable_set(VAR_MOUSED "=YES");
+ variable_set2(VAR_MOUSED, "YES");
}
return DITEM_SUCCESS;
OpenPOWER on IntegriCloud