-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
528644f
commit 9656a8c
Showing
6 changed files
with
79 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
|
||
. /scripts/hardware_group_operations.sh | ||
. /scripts/hardware_node_operations.sh | ||
|
||
handle_hardware_accel() { | ||
if [ "$DISABLE_HW_ACCEL" != "true" ]; then | ||
case "$DRI_DEVICE_MODE" in | ||
"ADD_GROUP") | ||
perform_group_operations | ||
;; | ||
"MKNOD") | ||
perform_node_operations | ||
;; | ||
"NONE") | ||
echo "Warning: DRI_DEVICE_MODE=NONE and DISABLE_HW_ACCEL!=true . Hardware acceleration may not function correctly." | ||
;; | ||
*) | ||
echo "Invalid DRI_DEVICE_MODE. Use either 'ADD_GROUP', 'MKNOD', or 'NONE'." | ||
;; | ||
esac | ||
else | ||
echo "Hardware acceleration is disabled." | ||
fi | ||
} | ||
|
||
handle_uinput_setup() { | ||
case "$UINPUT_DEVICE_MODE" in | ||
"ADD_GROUP") | ||
add_uinput_to_group_if_exists | ||
;; | ||
"MKNOD") | ||
recreate_uinput_dev_node_if_exists | ||
;; | ||
"NONE") | ||
echo "Warning: UINPUT_DEVICE_MODE=NONE. Gamepads may not functino correctly." | ||
;; | ||
*) | ||
echo "Invalid UINPUT_DEVICE_MODE. Use either 'ADD_GROUP', 'MKNOD', or 'NONE'." | ||
;; | ||
esac | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters