- [ -e /sys/class/leds/${sysfs}/brightness -a -n "$name" ] && {
- logger "setting up led : $name"
- [ -n "$default" ] && {
- [ $default -eq 1 ] &&
- echo 1 >/sys/class/leds/${sysfs}/brightness
+ [ -e /sys/class/leds/${sysfs}/brightness ] && {
+ echo "setting up led ${name}"
+ [ "$default" != nil ] && {
+ [ $default -eq 1 ] &&
+ echo 1 >/sys/class/leds/${sysfs}/brightness