cubieboard2-base: add udev rules for cedar/disp devices.

This commit is contained in:
Juan RP 2014-01-27 15:04:04 +01:00
parent 2534e7386b
commit 51575ab05a
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'cubieboard2-base'
pkgname=cubieboard2-base
version=1.1
version=1.2
revision=1
build_style=meta
homepage="http://www.voidlinux.eu"
@ -23,4 +23,8 @@ do_install() {
# Load the sunxi-emac module by default.
vmkdir usr/lib/modules-load.d
echo sunxi-emac > ${DESTDIR}/usr/lib/modules-load.d/cubieboard2.conf
# Set proper perms to disp and cedar devices.
vmkdir usr/lib/udev/rules.d
echo 'KERNEL=="disp", MODE="0660", GROUP="video"' > ${DESTDIR}/usr/lib/udev/rules.d/50-disp.rules
echo 'KERNEL=="cedar_dev", MODE="0660", GROUP="video"' > ${DESTDIR}/usr/lib/udev/rules.d/50-cedar.rules
}