mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
自动挂载 libcomposite 模块
This commit is contained in:
parent
7e6cb6d7b3
commit
ced23f2cdf
@ -22,7 +22,7 @@ RUN cp /tmp/lib/* /lib/*-linux-*/ \
|
|||||||
|
|
||||||
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list.d/debian.sources \
|
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list.d/debian.sources \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends libxkbcommon-x11-0 nginx tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-sim iptables sudo curl \
|
&& apt-get install -y --no-install-recommends libxkbcommon-x11-0 nginx tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-sim iptables sudo curl kmod \
|
||||||
libmicrohttpd12 libjansson4 libssl3 libsofia-sip-ua0 libglib2.0-0 libopus0 libogg0 libcurl4 libconfig9 libusrsctp2 libwebsockets17 libnss3 libasound2 \
|
libmicrohttpd12 libjansson4 libssl3 libsofia-sip-ua0 libglib2.0-0 libopus0 libogg0 libcurl4 libconfig9 libusrsctp2 libwebsockets17 libnss3 libasound2 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|||||||
@ -124,8 +124,9 @@ fi
|
|||||||
|
|
||||||
#Trying usb_gadget
|
#Trying usb_gadget
|
||||||
if [ "$OTG" == "1" ]; then
|
if [ "$OTG" == "1" ]; then
|
||||||
echo "Trying OTG Port..." \
|
echo "Trying OTG Port..."
|
||||||
&& python -m kvmd.apps.otg start \
|
modprobe libcomposite || echo -e "${RED}Linux libcomposite module modprobe failed.${NC}"
|
||||||
|
python -m kvmd.apps.otg start \
|
||||||
&& ln -s /dev/hidg1 /dev/kvmd-hid-mouse \
|
&& ln -s /dev/hidg1 /dev/kvmd-hid-mouse \
|
||||||
&& ln -s /dev/hidg0 /dev/kvmd-hid-keyboard \
|
&& ln -s /dev/hidg0 /dev/kvmd-hid-keyboard \
|
||||||
|| echo -e "${RED}OTG Port mount failed.${NC}"
|
|| echo -e "${RED}OTG Port mount failed.${NC}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user