slitaz-arm rev 169
Small fix to pileds
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 04 19:27:55 2014 +0200 (2014-05-04) |
parents | 9b1e4f9cf134 |
children | 0cc7269f8d0a |
files | rpi/pileds |
line diff
1.1 --- a/rpi/pileds Sun May 04 19:22:19 2014 +0200 1.2 +++ b/rpi/pileds Sun May 04 19:27:55 2014 +0200 1.3 @@ -39,7 +39,8 @@ 1.4 case "$1" in 1.5 1.6 act) 1.7 - status="$(cat /sys/class/leds/led0/brightness)" 1.8 + brightness="/sys/class/leds/led0/brightness" 1.9 + status="$(cat $brightness)" 1.10 if [ "$status" == 0 ]; then 1.11 echo "1" > ${brightness} 1.12 else