I've been pulling my hair to get the /dev/input/* tree to appear when hotplugging a keyboard or mouse, but unfortunately I am not succeeding at all. > The directory /dev/input is not showing up
I'm running OpenWrt 22.03.3 on GL.iNet GL-AR150, but have tried previous OpenWrt versions as well as 22.03.0, too.
I've also tried attaching different USB devices as well as installing any kmod-* module that made sense to me.
Is there something obvious that I'm missing or are there any configuration settings I have to make?
Sind sleep usually always returns true, this is a few chars shorter than while true ; do ls /dev/input/* ; sleep 1; done
Plus, if sleep returns false (maybe because of an interrupt or a kill) the loop will end...
So all in all, this is a good practice, that I've seen several times in other code, too.