From 6764a77ea1e2d1075aa1a7916b06ba14ef0db0ae Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Fri, 20 Sep 2024 23:41:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E7=8E=A9=E5=AE=A2=E4=BA=91=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20otg=20=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/init.sh b/build/init.sh index 722f84e3..5d89c4ec 100755 --- a/build/init.sh +++ b/build/init.sh @@ -134,7 +134,7 @@ fi if [ "$OTG" == "1" ]; then echo "Trying OTG Port..." python -m kvmd.apps.otg start - if [ -f /dev/hidg0 ] && [ -f /dev/hidg1 ]; then + if [ -e /dev/hidg0 ] && [ -e /dev/hidg1 ]; then ln -s /dev/hidg1 /dev/kvmd-hid-mouse && ln -s /dev/hidg0 /dev/kvmd-hid-keyboard fi fi