2021-02-22 17:09:23 +00:00
|
|
|
_message() {
|
2021-03-29 13:21:42 +00:00
|
|
|
cat <<END
|
|
|
|
|
2021-04-06 13:39:56 +00:00
|
|
|
>>> Remove any manual tweaks made to /boot/config.txt particulary a line such
|
|
|
|
as gpu_mem=xxx. Driver setup for Kodi is stored in /boot/kodi.config.txt
|
2021-03-29 13:21:42 +00:00
|
|
|
|
2021-04-06 13:39:56 +00:00
|
|
|
Manually append the following to /boot/config.txt to make them active:
|
|
|
|
[all]
|
|
|
|
include kodi.config.txt
|
2021-03-29 13:21:42 +00:00
|
|
|
|
2021-04-06 13:39:56 +00:00
|
|
|
A reboot will be required to activate them if this is a fresh install.
|
2021-03-29 13:21:42 +00:00
|
|
|
|
|
|
|
END
|
2020-12-09 21:44:39 +00:00
|
|
|
}
|
|
|
|
|
2021-02-22 17:09:23 +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
|
2023-02-04 20:03:11 +00:00
|
|
|
|
|
|
|
# https://bugs.archlinux.org/task/77341
|
|
|
|
if (($(vercmp $1 20.0-2) > 0)); then
|
|
|
|
if ! grep -q -r '^KODI_AE_SINK=ALSA' /etc/conf.d/kodi-standalone; then
|
2021-03-29 13:21:42 +00:00
|
|
|
cat <<END
|
|
|
|
|
2023-02-04 20:03:11 +00:00
|
|
|
>>> If audio is broken, add the following line to /etc/conf.d/kodi-standalone
|
|
|
|
then restart kodi.service: KODI_AE_SINK=ALSA
|
2021-03-29 13:21:42 +00:00
|
|
|
|
|
|
|
END
|
2023-02-04 20:03:11 +00:00
|
|
|
fi
|
2021-03-13 14:56:02 +00:00
|
|
|
fi
|
2021-02-22 17:09:23 +00:00
|
|
|
}
|
|
|
|
|
2020-12-09 21:44:39 +00:00
|
|
|
post_remove() {
|
|
|
|
echo "==> Optionally remove /var/lib/kodi/"
|
|
|
|
}
|