Skip to content

Commit fe98af4

Browse files
Chr1sNoCalcProgrammer1
authored andcommitted
Changing automatic Faustus udev rules to resolve #2695
1 parent 1d5faef commit fe98af4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/build-udev-rules.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ echo -e "Adding Static Headers"
2525
UDEV_HEADER=${UDEV_LINE}'# OpenRGB udev rules - Git Commit: '${GIT_SHORT_HASH:0:8}' #\n'${UDEV_LINE}'\n'
2626
UDEV_HEADER+=${UDEV_LINE}'# User I2C/SMBus Access #\n'${UDEV_LINE}'KERNEL=="i2c-[0-99]*", TAG+="uaccess"\n\n'
2727
UDEV_HEADER+=${UDEV_LINE}'# Super I/O Access #\n'${UDEV_LINE}'KERNEL=="port", TAG+="uaccess"\n\n'
28-
# Faustus rule needs to be tested
29-
UDEV_HEADER+=${UDEV_LINE}'# ASUS TUF Laptops (faustus) #\n'${UDEV_LINE}'ACTION=="add", SUBSYSTEM=="platform", KERNEL=="faustus", MODE="770"\n\n'
28+
29+
# Faustus rules
30+
ASUS_TUF_DEVICES=('blue' 'flags' 'green' 'mode' 'red' 'set' 'speed')
31+
UDEV_HEADER+=${UDEV_LINE}'# ASUS TUF Laptops (faustus) #\n'${UDEV_LINE}
32+
for DEV in ${ASUS_TUF_DEVICES[@]}; do
33+
UDEV_HEADER+='ACTION=="add", SUBSYSTEM=="platform", KERNEL=="faustus", RUN+="/bin/chmod a+w /sys/bus/platform/devices/%k/kbbl/kbbl_'${DEV}'"\n'
34+
done
3035

3136
echo -e "$UDEV_HEADER" > "$UDEV_FILE"
3237

0 commit comments

Comments
 (0)