Skip to content

Commit

Permalink
fix: Skip mknod errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 24, 2023
1 parent 62acaa9 commit 5e0b79e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ fi
[ ! -d /dev/dri ] && mkdir -m 755 /dev/dri

if [ ! -c /dev/dri/card0 ]; then
mknod /dev/dri/card0 c 226 0
if mknod /dev/dri/card0 c 226 0; then
chmod 666 /dev/dri/card0
fi
fi

if [ ! -c /dev/dri/renderD128 ]; then
mknod /dev/dri/renderD128 c 226 128
if mknod /dev/dri/renderD128 c 226 128; then
chmod 666 /dev/dri/renderD128
fi
fi

chmod 666 /dev/dri/card0
chmod 666 /dev/dri/renderD128

addPackage "xserver-xorg-video-intel" "Intel GPU drivers"
addPackage "qemu-system-modules-opengl" "OpenGL module"

Expand Down

0 comments on commit 5e0b79e

Please sign in to comment.