OSDN Git Service

init.sh: create missed /dev/input/event* nougat-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 12 Aug 2021 09:08:05 +0000 (17:08 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 12 Aug 2021 09:20:09 +0000 (17:20 +0800)
Due to unknown reasons some input device nodes are not created at
boot time. The script checks what nodes are missed and re-issue
the add uevent to create them.

init.sh

diff --git a/init.sh b/init.sh
index 2bd8163..b06667c 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -514,6 +514,10 @@ function do_bootcomplete()
                fi
        done
 
+       for e in /sys/class/input/event*; do
+               [ -c /dev/input/`basename $e` ] || echo add > $e/uevent
+       done
+
        post_bootcomplete
 }