security funnies
This commit is contained in:
parent
a064e4df44
commit
29cf115582
|
@ -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' "$*"
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue