aboutsummaryrefslogtreecommitdiff
path: root/board/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/common.sh')
-rw-r--r--board/common.sh6
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"
+}