diff options
Diffstat (limited to 'evtest-create-device.xsl')
-rw-r--r-- | evtest-create-device.xsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/evtest-create-device.xsl b/evtest-create-device.xsl index 8f9d83d..f461a44 100644 --- a/evtest-create-device.xsl +++ b/evtest-create-device.xsl @@ -84,7 +84,9 @@ static int init_uinput() { struct uinput_user_dev dev; - fd = open("/dev/input/uinput", O_RDWR); + fd = open("/dev/uinput", O_RDWR); + if (fd < 0 && errno == ENODEV) + fd = open("/dev/input/uinput", O_RDWR); if (fd < 0) goto error; |