summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-userspace/nvidia-userspace-346.35.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/nvidia-userspace/nvidia-userspace-346.35.ebuild')
-rw-r--r--x11-drivers/nvidia-userspace/nvidia-userspace-346.35.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/x11-drivers/nvidia-userspace/nvidia-userspace-346.35.ebuild b/x11-drivers/nvidia-userspace/nvidia-userspace-346.35.ebuild
index d02de75b..dcf657ba 100644
--- a/x11-drivers/nvidia-userspace/nvidia-userspace-346.35.ebuild
+++ b/x11-drivers/nvidia-userspace/nvidia-userspace-346.35.ebuild
@@ -318,9 +318,11 @@ pkg_preinst() {
local videogroup="$(getent group video | cut -d ':' -f 3)"
if [ -n "${videogroup}" ]; then
+ set -ex
sed -i -e "s:PACKAGE:${PF}:g" \
- -e "s:VIDEOGID:${videogroup}:" "${ROOT}"/etc/modprobe.d/nvidia.conf
+ -e "s:VIDEOGID:${videogroup}:g" "${ROOT}"/etc/modprobe.d/nvidia.conf
else
+ set ex
eerror "Failed to determine the video group gid."
die "Failed to determine the video group gid."
fi