Skip to content

Commit

Permalink
Fix the standard LED's interface path
Browse files Browse the repository at this point in the history
  • Loading branch information
baskerville committed May 7, 2024
1 parent f5b5cd5 commit f69991a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions contrib/plato.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ sync
killall -TERM nickel hindenburg sickel fickel adobehost foxitpdf iink dhcpcd-dbus dhcpcd fmon > /dev/null 2>&1


STANDARD_LEDS=0
LEDS_INTERFACE=/sys/devices/platform/pmic_light.1/lit
if [ -e /sys/class/leds/bd71828-green-led ] ; then
if [ -e /sys/class/leds/LED ] ; then
LEDS_INTERFACE=/sys/class/leds/LED/brightness
STANDARD_LEDS=1
elif [ -e /sys/class/leds/GLED ] ; then
LEDS_INTERFACE=/sys/class/leds/GLED/brightness
STANDARD_LEDS=1
elif [ -e /sys/class/leds/bd71828-green-led ] ; then
LEDS_INTERFACE=/sys/class/leds/bd71828-green-led/brightness
STANDARD_LEDS=1
LEDS_INTERFACE=/sys/class/leds/bd71828-green-led
elif [ -e /sys/devices/platform/ntx_led/lit ] ; then
LEDS_INTERFACE=/sys/devices/platform/ntx_led/lit
STANDARD_LEDS=0
elif [ -e /sys/devices/platform/pmic_light.1/lit ] ; then
LEDS_INTERFACE=/sys/devices/platform/pmic_light.1/lit
STANDARD_LEDS=0
fi

# Turn off the LEDs
Expand Down

0 comments on commit f69991a

Please sign in to comment.