mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Radxa Cubie A5E & Kickpi K2B: Pull CodeRabbit nitpicks
Same as for Radxa Zero 3
This commit is contained in:
committed by
Rolf Leggewie
parent
f3a21c739c
commit
79fd84f812
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user