mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-09-26 17:44:16 +00:00
fix: clarify integrated Bluetooth diagnostics
This commit is contained in:
+4
-2
@@ -85,12 +85,14 @@ legacy_refs_found=false
|
|||||||
mapfile -t legacy_modprobe_files < <(
|
mapfile -t legacy_modprobe_files < <(
|
||||||
grep -RIlE '^[[:space:]]*(softdep|alias)[^#]*aic_btusb([[:space:]]|$)' \
|
grep -RIlE '^[[:space:]]*(softdep|alias)[^#]*aic_btusb([[:space:]]|$)' \
|
||||||
/etc/modprobe.d /run/modprobe.d /usr/local/lib/modprobe.d \
|
/etc/modprobe.d /run/modprobe.d /usr/local/lib/modprobe.d \
|
||||||
/usr/lib/modprobe.d /lib/modprobe.d 2>/dev/null || true
|
/usr/lib/modprobe.d /lib/modprobe.d 2>/dev/null | \
|
||||||
|
grep -vE '\.aic8800-backup$' || true
|
||||||
)
|
)
|
||||||
mapfile -t legacy_udev_files < <(
|
mapfile -t legacy_udev_files < <(
|
||||||
grep -RIl 'aic_btusb/new_id' \
|
grep -RIl 'aic_btusb/new_id' \
|
||||||
/etc/udev/rules.d /run/udev/rules.d \
|
/etc/udev/rules.d /run/udev/rules.d \
|
||||||
/usr/lib/udev/rules.d /lib/udev/rules.d 2>/dev/null || true
|
/usr/lib/udev/rules.d /lib/udev/rules.d 2>/dev/null | \
|
||||||
|
grep -vE '\.aic8800-backup$' || true
|
||||||
)
|
)
|
||||||
|
|
||||||
for legacy_file in "${legacy_modprobe_files[@]}"; do
|
for legacy_file in "${legacy_modprobe_files[@]}"; do
|
||||||
|
|||||||
@@ -188,7 +188,8 @@ show_status() {
|
|||||||
local loaded="no"
|
local loaded="no"
|
||||||
local injections="unavailable"
|
local injections="unavailable"
|
||||||
local hook="unavailable"
|
local hook="unavailable"
|
||||||
local dkms_status
|
local integrated_dkms_status
|
||||||
|
local standalone_dkms_status
|
||||||
|
|
||||||
if module_loaded "${MODULE_NAME}"; then
|
if module_loaded "${MODULE_NAME}"; then
|
||||||
loaded="yes"
|
loaded="yes"
|
||||||
@@ -200,9 +201,13 @@ show_status() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dkms_status="$(dkms status -m "${PACKAGE_NAME}" -v "${PACKAGE_VERSION}" 2>/dev/null || true)"
|
standalone_dkms_status="$(dkms status -m "${PACKAGE_NAME}" -v "${PACKAGE_VERSION}" 2>/dev/null || true)"
|
||||||
if [ -z "${dkms_status}" ]; then
|
if [ -z "${standalone_dkms_status}" ]; then
|
||||||
dkms_status="not installed"
|
standalone_dkms_status="not installed"
|
||||||
|
fi
|
||||||
|
integrated_dkms_status="$(dkms status -m aic8800 -v 1.0.0 2>/dev/null || true)"
|
||||||
|
if [ -z "${integrated_dkms_status}" ]; then
|
||||||
|
integrated_dkms_status="not installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf 'kernel: %s\n' "${KERNEL_RELEASE}"
|
printf 'kernel: %s\n' "${KERNEL_RELEASE}"
|
||||||
@@ -212,7 +217,8 @@ show_status() {
|
|||||||
printf 'active hook: %s\n' "${hook}"
|
printf 'active hook: %s\n' "${hook}"
|
||||||
printf 'ZLP injections:%s\n' " ${injections}"
|
printf 'ZLP injections:%s\n' " ${injections}"
|
||||||
printf 'legacy aic_btusb: %s\n' "$(legacy_btusb_loaded && printf 'loaded' || printf 'not loaded')"
|
printf 'legacy aic_btusb: %s\n' "$(legacy_btusb_loaded && printf 'loaded' || printf 'not loaded')"
|
||||||
printf 'dkms status: %s\n' "${dkms_status}"
|
printf 'integrated DKMS: %s\n' "${integrated_dkms_status}"
|
||||||
|
printf 'standalone DKMS: %s\n' "${standalone_dkms_status}"
|
||||||
show_aic_binding
|
show_aic_binding
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user