mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
eef7b99e58
Build VLC with HW decoding for RPi models bearing hardware support for it
29 lines
604 B
Text
29 lines
604 B
Text
_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"
|
|
}
|