12 lines
313 B
Bash
Executable File
12 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Restore saved brightness for each card, if any.
|
|
for card in $(find /sys/class/backlight/ -type l); do
|
|
storage_file="/var/cache/backlight/$(basename $card)-brightness-old"
|
|
if [ -r "$storage_file" ]; then
|
|
cp "$storage_file" "$card/brightness"
|
|
fi
|
|
done
|
|
|
|
exec chpst -b backlight pause
|