PKGBUILDs/alarm/vlc-rpi/vlc.install
graysky eef7b99e58 added alarm/vlc-rpi
Build VLC with HW decoding for RPi models bearing hardware support for it
2022-09-01 21:24:25 -04:00

30 lines
604 B
Plaintext

_message() {
cat <<END
>>> Manually add your user to the following groups: video and tty
example: usermod -a -G tty,video yourusername
>>> Manually append the following to /boot/config.txt to load correct drivers:
[all]
include vlc.config.txt
>>> A reboot will be required to activate them
END
}
post_install() {
_config=/boot/config.txt
if [ -f "$_config" ]; then
if ! grep -q 'include vlc.config.txt' "$_config"; then
_message
fi
fi
}
post_upgrade() {
post_install
}
post_remove() {
echo "==> Optionally remove the modifications you made to /boot/config.txt"
}