#! /bin/sh
### BEGIN INIT INFO
# Provides:          aria_led
# Required-Start:    
# Required-Stop:     
# Default-Start:     1 2 3 4 5
# Default-Stop:      0 6		
# Short-Description: Manages the green led on Aria G25
### END INIT INFO


PATH=/sbin:/usr/sbin:/bin:/usr/bin

. /lib/init/vars.sh
. /lib/lsb/init-functions

case "$1" in
    start)
	echo "Green led as hearbeat"
	echo heartbeat > /sys/class/leds/aria_led/trigger
        ;;
    restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
    stop)
	echo "User led off"
	echo none > /sys/class/leds/aria_led/trigger
        ;;
    *)
        echo "Usage: $0 start|stop" >&2
        exit 3
        ;;
esac
