From 4d63cc98526c68135a3c5bf4c19e8ca1bd8eb6d9 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Thu, 15 Jan 2015 12:14:09 +0200 Subject: [PATCH] scripts/image: add support for project specific systemd services --- scripts/image | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/image b/scripts/image index 9a794ac80f..d2584b4cec 100755 --- a/scripts/image +++ b/scripts/image @@ -171,6 +171,12 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION" # copy project related files to filesystem if [ -d "$PROJECT_DIR/$PROJECT/filesystem" ]; then cp -PR $PROJECT_DIR/$PROJECT/filesystem/* $INSTALL + # install project specific systemd services + for service in $PROJECT_DIR/$PROJECT/filesystem/usr/lib/systemd/system/*.service ; do + if [ -f "$service" ] ; then + enable_service $(basename $service) + fi + done fi # run depmod