mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
405cf30158
Major change here is moving kodi.service from system.slice into user.slice. Several positive tangibles include: * Ability to use USB drives directly in Kodi GUI. * More simplistic use/configuration of pulseaudio for more advanced setups. Another effect of this change is that calling `systemctl reboot` will not result in a gracefully exit and some profile data will be lost since systemd frankly, brutally kills user.slice cgs. In principal this is no different than data loss occurring from a user doing work when a sysadmin issues a reboot command without prior warning. The newly included man page and post_upgrade message will inform users of this and suggest several alternatives. This commit also introduces a simplification to packaging by using a versioned upstream source for init files instead of providing these six files on a per- -package-basis.
29 lines
821 B
Text
29 lines
821 B
Text
_message() {
|
|
echo "-> Remove any tweaks made to /boot/config.txt now!"
|
|
echo "-> This includes lines such as gpu_mem=..."
|
|
echo "-> Add the following to /boot/config.txt or else kodi will not work."
|
|
echo " [all]"
|
|
echo " include kodi.config.txt"
|
|
}
|
|
|
|
post_install() {
|
|
_config=/boot/config.txt
|
|
if [ -f "$_config" ]; then
|
|
if ! grep -q 'include kodi.config.txt' "$_config"; then
|
|
_message
|
|
fi
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
# version 19.0-7 moves kodi.service to user.slice so warn users about data loss
|
|
if (($(vercmp 19.0-7 $2) > 0)); then
|
|
echo "-> kodi.service now runs in systemd's user.slice, see man kodi.service for"
|
|
echo "-> important info on how to reboot or shutdown the system to avoid data loss!"
|
|
fi
|
|
}
|
|
|
|
post_remove() {
|
|
echo "==> Optionally remove /var/lib/kodi/"
|
|
}
|