Hotfix release available: 2024-02-06a "Kaos".
upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos".
upgrade now! [55] (what's this?)
backlightcontrol
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
backlightcontrol [2011/10/18 22:57] – Missing " in udev-rule richs | backlightcontrol [2011/11/05 13:28] – fixed errors in inc/dec bash scripts excogitation | ||
---|---|---|---|
Line 10: | Line 10: | ||
current=$(cat $backlight) | current=$(cat $backlight) | ||
new=$((current +25)) | new=$((current +25)) | ||
- | if ((new > 255 )); then | + | if [ $new -gt 255 ]; then |
| | ||
fi | fi | ||
+ | |||
echo $new > $backlight | echo $new > $backlight | ||
</ | </ | ||
Line 25: | Line 26: | ||
current=$(cat $backlight) | current=$(cat $backlight) | ||
new=$((current - 25)) | new=$((current - 25)) | ||
- | if ((new < 0 )); then | + | if [ $new -lt 0 ]; then |
- | new=0 | + | new=3 |
fi | fi | ||
echo $new > $backlight | echo $new > $backlight |
backlightcontrol.txt · Last modified: 2011/11/05 13:33 by excogitation