The following code is in the svgalib ebuild, although it should probably check the udev version as well, and install a rules.d file if its newer or equal to than 052. if [[ -e ${ROOT}/dev/.devfsd ]] ; then insinto /etc/devfs.d newins "${FILESDIR}"/svgalib.devfs svgalib elif [[ -e ${ROOT}/dev/.udev ]] ; then dodir /etc/udev/permissions.d echo "svga*:root:video:0660" > \ "${D}"/etc/udev/permissions.d/30-${PN}.permissions fi Could I maybe suggest something like this? elif [[ -e ${ROOT}/dev/.udev ]] ; then version=`udevinfo -V` version=${version//* } if [[ ${version} -ge 052 ]]; then dodir /etc/udev/rules.d echo "KERNEL="svga*", NAME="%k", MODE="0660" \ "${D}"/etc/udev/rules.d/30-${PN}.rules else dodir /etc/udev/permissions.d echo "svga*:root:video:0660" > \ "${D}"/etc/udev/permissions.d/30-${PN}.permissions fi fi although, might I add this isnt tested :) Reproducible: Always Steps to Reproduce:
ive cleaned up the ebuild to check the portage way (best_version udev) and install rules.d / permissions.d files accordingly, thanks side note, your quoting is wrong, it should be: echo 'KERNEL="svga*" ...'
yeah I noticed once I posted it :) Missing > too. Just wrote it into the bug on the fly. Cheers.