Commit afc84a88 authored by aTc's avatar aTc

led-config: add status

parent 7c7a507c
#! /bin/sh
# bah
if [ -e /sys/class/leds/ ] ; then
case "$1" in
......@@ -23,8 +24,16 @@ case "$1" in
fi
done
;;
info)
echo "Led info:"
for led in /sys/class/leds/* ; do
trigger=$(cat $led/trigger | cut -d "[" -f2 | cut -d "]" -f1)
#trigger=$(cat $led/trigger)
echo "$(basename $led) $trigger"
done
;;
*)
echo "Usage: $0 {start|stop}"
echo "Usage: $0 {start|stop|info}"
exit 1
esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment