mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
Merge pull request #1100 from Kwiboo/enable-service-alias
Create symbolic links for systemd unit aliases
This commit is contained in:
commit
ab107fd7c2
@ -270,6 +270,11 @@ enable_service () {
|
||||
fi
|
||||
done
|
||||
fi
|
||||
for target in `grep '^Alias' $target_dir/$unit_dir/$unit | cut -f2 -d=` ; do
|
||||
if [ -n "$target" ]; then
|
||||
ln -sf ${unit} ${target_dir}/$unit_dir/${target}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
check_path() {
|
||||
|
@ -346,10 +346,7 @@ post_makeinstall_target() {
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# link default.target to kodi.target
|
||||
ln -sf kodi.target $INSTALL/usr/lib/systemd/system/default.target
|
||||
|
||||
# enable default services
|
||||
enable_service kodi.target
|
||||
enable_service kodi-autostart.service
|
||||
enable_service kodi-cleanlogs.service
|
||||
enable_service kodi-halt.service
|
||||
|
Loading…
x
Reference in New Issue
Block a user