11 lines
292 B
Plaintext
Executable File
11 lines
292 B
Plaintext
Executable File
#!/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
|