Skip to content

Commit 5b5b80e

Browse files
committed
config/boards: improve test for aic-bluetooth.service
at coderabbit's suggestion, test for three places instead of just two to make detection of aic-bluetooth.service file more robust - kickpik2b - radxa-cubie-a5e - radxa-zero3
1 parent efc1ae0 commit 5b5b80e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/boards/kickpik2b.csc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function post_family_tweaks_bsp__aic8800_wireless() {
4848
# Enable AIC8800 Bluetooth Service
4949
function post_family_tweaks__enable_aic8800_bluetooth_service() {
5050
display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info"
51-
if chroot_sdcard test -f /lib/systemd/system/aic-bluetooth.service || chroot_sdcard test -f /etc/systemd/system/aic-bluetooth.service; then
51+
if chroot_sdcard test -f {/lib/,/usr/lib/,/etc/}systemd/system/aic-bluetooth.service; then
5252
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service
5353
else
5454
display_alert "$BOARD" "aic-bluetooth.service not found in image; skipping enable" "warn"

config/boards/radxa-cubie-a5e.csc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function post_family_tweaks_bsp__aic8800_wireless() {
5151
# Enable AIC8800 Bluetooth Service
5252
function post_family_tweaks__enable_aic8800_bluetooth_service() {
5353
display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info"
54-
if chroot_sdcard test -f /lib/systemd/system/aic-bluetooth.service || chroot_sdcard test -f /etc/systemd/system/aic-bluetooth.service; then
54+
if chroot_sdcard test -f {/lib/,/usr/lib/,/etc/}systemd/system/aic-bluetooth.service; then
5555
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service
5656
else
5757
display_alert "$BOARD" "aic-bluetooth.service not found in image; skipping enable" "warn"

config/boards/radxa-zero3.csc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function post_family_tweaks_bsp__aic8800_wireless() {
4949
# Enable AIC8800 Bluetooth Service
5050
function post_family_tweaks__enable_aic8800_bluetooth_service() {
5151
display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info"
52-
if chroot_sdcard test -f /lib/systemd/system/aic-bluetooth.service || chroot_sdcard test -f /etc/systemd/system/aic-bluetooth.service; then
52+
if chroot_sdcard test -f {/lib/,/usr/lib/,/etc/}systemd/system/aic-bluetooth.service; then
5353
chroot_sdcard systemctl --no-reload enable aic-bluetooth.service
5454
else
5555
display_alert "$BOARD" "aic-bluetooth.service not found in image; skipping enable" "warn"

0 commit comments

Comments
 (0)