aboutsummaryrefslogtreecommitdiff
path: root/board/common.sh
diff options
context:
space:
mode:
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"
}