Radxa Cubie A5E & Kickpi K2B: Pull CodeRabbit nitpicks

Same as for Radxa Zero 3
This commit is contained in:
Andreas Reis
2025-08-19 21:38:30 +02:00
committed by Rolf Leggewie
parent f3a21c739c
commit 79fd84f812
2 changed files with 22 additions and 12 deletions

View File

@@ -36,16 +36,21 @@ function post_family_tweaks_bsp__aic8800_wireless() {
EOT EOT
# Add AIC8800 Bluetooth Service and Script # Add AIC8800 Bluetooth Service and Script
if [[ -d "$SRC/packages/bsp/aic8800" ]]; then if [[ -d "$SRC/packages/bsp/aic8800" ]]; then
mkdir -p "${destination}"/etc/systemd/system install -d -m 0755 "${destination}/usr/bin"
mkdir -p "${destination}"/usr/bin install -m 0755 "$SRC/packages/bsp/aic8800/aic-bluetooth" "${destination}/usr/bin/aic-bluetooth"
cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth" "${destination}"/usr/bin install -d -m 0755 "${destination}/usr/lib/systemd/system"
chmod +x "${destination}"/usr/bin/aic-bluetooth install -m 0644 "$SRC/packages/bsp/aic8800/aic-bluetooth.service" "${destination}/usr/lib/systemd/system/aic-bluetooth.service"
cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth.service" "${destination}"/etc/systemd/system else
display_alert "$BOARD" "Skipping AIC8800 BT assets (packages/bsp/aic8800 not found)" "warn"
fi fi
} }
# Enable AIC8800 Bluetooth Service # Enable AIC8800 Bluetooth Service
function post_family_tweaks__enable_aic8800_bluetooth_service() { function post_family_tweaks__enable_aic8800_bluetooth_service() {
display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info" display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info"
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service if chroot_sdcard test -f /lib/systemd/system/aic-bluetooth.service || chroot_sdcard test -f /etc/systemd/system/aic-bluetooth.service; then
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service
else
display_alert "$BOARD" "aic-bluetooth.service not found in image; skipping enable" "warn"
fi
} }

View File

@@ -39,17 +39,22 @@ function post_family_tweaks_bsp__aic8800_wireless() {
EOT EOT
# Add AIC8800 Bluetooth Service and Script # Add AIC8800 Bluetooth Service and Script
if [[ -d "$SRC/packages/bsp/aic8800" ]]; then if [[ -d "$SRC/packages/bsp/aic8800" ]]; then
mkdir -p "${destination}"/etc/systemd/system install -d -m 0755 "${destination}/usr/bin"
mkdir -p "${destination}"/usr/bin install -m 0755 "$SRC/packages/bsp/aic8800/aic-bluetooth" "${destination}/usr/bin/aic-bluetooth"
cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth" "${destination}"/usr/bin install -d -m 0755 "${destination}/usr/lib/systemd/system"
chmod +x "${destination}"/usr/bin/aic-bluetooth install -m 0644 "$SRC/packages/bsp/aic8800/aic-bluetooth.service" "${destination}/usr/lib/systemd/system/aic-bluetooth.service"
cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth.service" "${destination}"/etc/systemd/system else
display_alert "$BOARD" "Skipping AIC8800 BT assets (packages/bsp/aic8800 not found)" "warn"
fi fi
} }
# Enable AIC8800 Bluetooth Service # Enable AIC8800 Bluetooth Service
function post_family_tweaks__enable_aic8800_bluetooth_service() { function post_family_tweaks__enable_aic8800_bluetooth_service() {
display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info" display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info"
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service if chroot_sdcard test -f /lib/systemd/system/aic-bluetooth.service || chroot_sdcard test -f /etc/systemd/system/aic-bluetooth.service; then
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service
else
display_alert "$BOARD" "aic-bluetooth.service not found in image; skipping enable" "warn"
fi
} }