mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/image: add support for project specific systemd services
This commit is contained in:
parent
17bc2cf305
commit
4d63cc9852
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user