summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@no.no.james.local>2015-12-28 11:29:50 +0000
committerroot <root@no.no.james.local>2015-12-28 11:29:50 +0000
commit77b1f3cd39f3fe0035e8fbb890aef4f497c08916 (patch)
tree424727e70ac954c42916e14c8c5661ff4af713ad
parent72322a8dc53c0c6c64b9a706c75b327eae6e0160 (diff)
downloadkobo-tools-master.tar.gz
kobo-tools-master.tar.bz2
kobo-tools-master.zip
remove vt resetHEADmaster
-rw-r--r--vt_reset.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/vt_reset.c b/vt_reset.c
deleted file mode 100644
index 139ab0b..0000000
--- a/vt_reset.c
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <fcntl.h>
-#include <sys/ioctl.h>
-#include <linux/vt.h>
-#include <string.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-
-main (int argc, char *argv[])
-{
- int fd;
- int i;
- char buf[128];
- struct vt_mode vm;
-
- for (i = 1; i < 31; ++i) {
- sprintf (buf, "/dev/tty%d", i);
- fd = open (buf, O_RDWR | O_NOCTTY);
-
- memset (&vm, 0, sizeof (vm));
- vm.mode = VT_PROCESS;
- ioctl (fd, VT_SETMODE, &vm);
- ioctl (fd, VT_RELDISP, 0);
- ioctl (fd, VT_RELDISP, 1);
- ioctl (fd, VT_RELDISP, VT_ACKACQ);
-
- memset (&vm, 0, sizeof (vm));
- vm.mode = VT_AUTO;
- ioctl (fd, VT_SETMODE, &vm);
-
- ioctl (fd, VT_UNLOCKSWITCH, 0);
-
- close (fd);
- }
- exit (0);
-}