Fix for the problem that moused hangs if it is started from /etc/rc
Introduces the /dev/consolectl device for controlling various console related things (given syscons is used).
This commit is contained in:
parent
4485fb3705
commit
a6a179df03
@ -101,7 +101,7 @@
|
||||
# labpc* National Instrument's Lab-PC and LAB-PC+
|
||||
# perfmon CPU performance-monitoring counters
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.121 1996/09/08 23:56:27 ache Exp $
|
||||
# $Id: MAKEDEV,v 1.122 1996/09/09 00:02:44 ache Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
@ -1063,9 +1063,11 @@ tun?)
|
||||
;;
|
||||
|
||||
sysmouse)
|
||||
rm -f sysmouse
|
||||
rm -f sysmouse consolectl
|
||||
mknod sysmouse c 12 128
|
||||
chown root.wheel sysmouse
|
||||
mknod consolectl c 12 255
|
||||
chown root.wheel sysmouse consolectl
|
||||
chmod 600 sysmouse consolectl
|
||||
;;
|
||||
|
||||
snp?)
|
||||
|
@ -101,7 +101,7 @@
|
||||
# labpc* National Instrument's Lab-PC and LAB-PC+
|
||||
# perfmon CPU performance-monitoring counters
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.121 1996/09/08 23:56:27 ache Exp $
|
||||
# $Id: MAKEDEV,v 1.122 1996/09/09 00:02:44 ache Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
@ -1063,9 +1063,11 @@ tun?)
|
||||
;;
|
||||
|
||||
sysmouse)
|
||||
rm -f sysmouse
|
||||
rm -f sysmouse consolectl
|
||||
mknod sysmouse c 12 128
|
||||
chown root.wheel sysmouse
|
||||
mknod consolectl c 12 255
|
||||
chown root.wheel sysmouse consolectl
|
||||
chmod 600 sysmouse consolectl
|
||||
;;
|
||||
|
||||
snp?)
|
||||
|
@ -30,7 +30,7 @@
|
||||
** EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
**
|
||||
**
|
||||
** $Id: moused.c,v 1.1 1996/06/21 09:24:09 sos Exp $
|
||||
** $Id: moused.c,v 1.2 1996/06/25 08:54:57 sos Exp $
|
||||
**/
|
||||
|
||||
/**
|
||||
@ -223,7 +223,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
r_init(); /* call init function */
|
||||
|
||||
if ((cfd = open("/dev/console", O_RDWR, 0)) == -1)
|
||||
if ((cfd = open("/dev/consolectl", O_RDWR, 0)) == -1)
|
||||
fprintf(stderr, "error on /dev/console\n");
|
||||
|
||||
if (!nodaemon)
|
||||
|
Loading…
Reference in New Issue
Block a user