From 0640b403f2dc33fca3b1ca121012b98c2420ef24 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 18 Jun 2025 12:06:04 +0200 Subject: Moved the systemd configuration in it’s own file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- board/common.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/common.sh') 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" } -- cgit v1.2.3