security funnies

This commit is contained in:
yosh 2023-01-31 19:20:02 -05:00
parent a064e4df44
commit 29cf115582
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -euf
BACKLIGHT_PATH="${BACKLIGHT_PATH:-/sys/class/backlight/amdgpu_bl0}"
BACKLIGHT_PATH="/sys/class/backlight/amdgpu_bl0"
errecho() {
>&2 printf '%s\n' "$*"

View File

@ -2,7 +2,7 @@
A simple script to change the backlight brightness value on laptops. Mostly made as a workaround for [this bug](https://bugzilla.kernel.org/show_bug.cgi?id=203905).
## Configuration
The only configurable variable is the backlight path. It defaults to `/sys/class/backlight/amdgpu_bl0`. You can change `BACKLIGHT_PATH` to point to the file path.
The only configurable variable is the backlight path. It defaults to `/sys/class/backlight/amdgpu_bl0`. You can change `BACKLIGHT_PATH` (in the script itself, for security reasons bla bla bla) to point to the file path.
## Usage
```