PKGBUILDs/alarm/kodi-rpi-legacy/kodi.install

25 lines
520 B
Text
Raw Normal View History

2021-02-22 17:10:16 +00:00
_message() {
2021-02-20 14:47:46 +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:16 +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
}
post_remove() {
echo "==> Optionally remove /var/lib/kodi/"
}