summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-09-22 17:14:42 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-09-22 17:14:42 +0200
commit5059c335c46c3d250deaa6afaca2f7740bdddf36 (patch)
tree5cf00f7c9a3047822a3446c4073a2cb8ca9da85a
parent7a6456b7db6faa279c669db2e5838a4d6de23eda (diff)
Correct documentation on evemu-play usage
The data should be directed into the program, not given as argument. Also make evemu-play complain if given two arguments. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--INSTALL4
-rw-r--r--tools/evemu-play.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/INSTALL b/INSTALL
index cd69b2b..0870e39 100644
--- a/INSTALL
+++ b/INSTALL
@@ -17,11 +17,11 @@ To record a stream of events, do
To create a device from the properties, do
- sudo ./tools/evemu-create device.properties
+ sudo ./tools/evemu-device device.properties
To replay a stream of events, do
- sudo ./tools/evemu-play /dev/input/eventY device.data
+ sudo ./tools/evemu-play /dev/input/eventY < device.data
To destroy the device, do
diff --git a/tools/evemu-play.c b/tools/evemu-play.c
index 54a16d9..286bf6a 100644
--- a/tools/evemu-play.c
+++ b/tools/evemu-play.c
@@ -34,7 +34,7 @@
int main(int argc, char *argv[])
{
int fd;
- if (argc < 2) {
+ if (argc != 2) {
fprintf(stderr, "Usage: %s <device>\n", argv[0]);
fprintf(stderr, "\n");
fprintf(stderr, "Event data is read from standard input.\n");