diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2025-06-18 09:45:56 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2025-06-18 09:45:56 +0200 |
commit | 8e654849a088d7e2843233e90a0994829de638d0 (patch) | |
tree | 8561f04d6c94b0a54ebfe9155cf10601cc251c4a /board/common.sh | |
parent | 1ce989e2da7d00b825097cd5cf5aec5273a7ba5b (diff) |
Updated the scripts to use common fonctions
Diffstat (limited to 'board/common.sh')
-rw-r--r-- | board/common.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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" +} |