# https://bugs.gentoo.org/472766
shopt -s nullglob
cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
nodes=$(echo -n /dev/dri/{card,render}* | sed 's/ /:/g')":/dev/nvidiactl"
if test -n "${cards}"; then
if test -n "${nodes}"; then
addpredict "${cards}"
addpredict "${nodes}"
fi
shopt -u nullglob
}