mirror of
https://github.com/tsukumijima/px4_drv.git
synced 2025-07-23 04:03:01 +02:00
複数のカーネルバージョンに対するモジュールがインストールさている環境において、アンインストール時に99-px4video.rulesを削除してはならない場合にも削除してしまう問題を修正
5 lines
156 B
Bash
Executable File
5 lines
156 B
Bash
Executable File
#!/bin/sh
|
|
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
|