Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to check the existence and the validity of /dev/input/event* #47

Closed
wants to merge 1 commit into from
Closed

fix to check the existence and the validity of /dev/input/event* #47

wants to merge 1 commit into from

Conversation

Terminus-IMRC
Copy link

When the raspi-config init script checks whether the shift key is being pushed or not,
these 2 problems may occur:

  • If the keyboard is not connected, "/dev/input/event*" points no file. So thd prints "Error opening '/dev/input/event*': No such file or directory".
  • If the keyboard had once been connected and is no longer connected, the event device is not valid. So thd prints "Error opening '/dev/input/event0': No such device or address", for example.

So I write a function which checks the existence and the validity of /dev/input/event*.
Please evaluate my codes and merge to your master branch.

Regards.

@a-detiste
Copy link

That seems a bit much,
why not just add a 2&>1 like in my P.R. ?
#50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants