2021-02-22 17:10:47 +00:00
|
|
|
_message() {
|
2020-12-10 01:51:53 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2021-02-22 17:10:47 +00:00
|
|
|
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
|
2021-03-13 19:26:51 +00:00
|
|
|
# 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
|
2021-02-22 17:10:47 +00:00
|
|
|
}
|
|
|
|
|
2020-12-10 01:51:53 +00:00
|
|
|
post_remove() {
|
|
|
|
echo "==> Optionally remove /var/lib/kodi/"
|
|
|
|
}
|