From 8e654849a088d7e2843233e90a0994829de638d0 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 18 Jun 2025 09:45:56 +0200 Subject: Updated the scripts to use common fonctions --- board/common.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board/common.sh') diff --git a/board/common.sh b/board/common.sh index 6e05d2a..1026c11 100644 --- a/board/common.sh +++ b/board/common.sh @@ -1,4 +1,5 @@ create_missing_dir() { + echo "creating directory ${TARGET_DIR}/$1" test -d "${TARGET_DIR}/$1" || mkdir -p "${TARGET_DIR}/$1" } @@ -15,3 +16,8 @@ tmpfs $1 tmpfs rw 0 0 __EOF__ fi } + +# Enable a systemd service +enable_service() { + ln -sf /etc/systemd/system/$1 "${TARGET_DIR}/usr/lib/systemd/system/multi-user.target.wants/$1" +} -- cgit v1.2.3