#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# Make GPU devices accessible if present (running as root in HAOS)
FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)

for i in $FILES; do
    echo "**** found GPU device: ${i} ****"
    chmod a+rw "${i}" 2>/dev/null || true
done
