aboutsummaryrefslogtreecommitdiff
path: root/board/common.sh
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2025-06-18 12:06:04 +0200
committerSébastien Dailly <sebastien@dailly.me>2025-06-18 12:06:04 +0200
commit0640b403f2dc33fca3b1ca121012b98c2420ef24 (patch)
treead7412b9bf9c24420cab47143004e5891992837f /board/common.sh
parent8e654849a088d7e2843233e90a0994829de638d0 (diff)
Moved the systemd configuration in it’s own file
Diffstat (limited to 'board/common.sh')
-rw-r--r--board/common.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/common.sh b/board/common.sh
index 1026c11..04f0cbc 100644
--- a/board/common.sh
+++ b/board/common.sh
@@ -19,5 +19,10 @@ __EOF__
# Enable a systemd service
enable_service() {
+ if [ -e "$BR2_EXTERNAL_PIAUDIO_PATH/local/services/$1" ]; then
+ cp "$BR2_EXTERNAL_PIAUDIO_PATH/local/services/$1" "${TARGET_DIR}/etc/systemd/system/$1"
+ else
+ echo "WARN: local/services/$1 does not exists"
+ fi
ln -sf /etc/systemd/system/$1 "${TARGET_DIR}/usr/lib/systemd/system/multi-user.target.wants/$1"
}