From 0a63d0c9fa36860d19e8a1f40816240934eefffb Mon Sep 17 00:00:00 2001 From: hendecarows Date: Thu, 5 Jun 2025 20:09:24 +0900 Subject: [PATCH] =?UTF-8?q?Ubuntu=2024.04=E7=92=B0=E5=A2=83=E3=81=A7dkms?= =?UTF-8?q?=E5=BE=8C=E5=87=A6=E7=90=86=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=97?= =?UTF-8?q?=E3=83=88=E3=81=8C=E6=9C=AC=E6=9D=A5=E5=89=8A=E9=99=A4=E3=81=99?= =?UTF-8?q?=E3=81=B9=E3=81=8D=E3=81=A7=E3=81=AF=E3=81=AA=E3=81=8499-px4vid?= =?UTF-8?q?eo.rules=E3=81=A8it930x-firmware.bin=E3=82=92=E5=89=8A=E9=99=A4?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dkms/post_remove.sh | 2 +- driver/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dkms/post_remove.sh b/dkms/post_remove.sh index 6cdfece..0b735ed 100755 --- a/dkms/post_remove.sh +++ b/dkms/post_remove.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ `find /lib/modules/ -name px4_drv.ko | wc -l` -eq 0 ]; then +if [ `find /lib/modules/ -name 'px4_drv.ko*' | wc -l` -eq 0 ]; then rm -fv /etc/udev/rules.d/90-px4.rules /etc/udev/rules.d/99-px4video.rules rm -fv /lib/firmware/it930x-firmware.bin fi diff --git a/driver/Makefile b/driver/Makefile index 81a76de..90f35ac 100644 --- a/driver/Makefile +++ b/driver/Makefile @@ -61,7 +61,7 @@ uninstall: modprobe -r px4_drv; \ fi $(cmd_prefix)rm -fv $(INSTALL_DIR)/px4_drv.ko - $(cmd_prefix)if [ `find /lib/modules/ -name px4_drv.ko | wc -l` -eq 0 ]; then \ + $(cmd_prefix)if [ `find /lib/modules/ -name 'px4_drv.ko*' | wc -l` -eq 0 ]; then \ rm -fv /etc/udev/rules.d/90-px4.rules /etc/udev/rules.d/99-px4video.rules; \ fi $(cmd_prefix)depmod -a $(KVER)