#! /bin/sh ### BEGIN INIT INFO # Short-Description: Dummy init script ### END INIT INFO set -e case "$1" in start) echo -n "Starting Leds: " echo "heartbeat" > "/sys/class/leds/led2:red:backhaul/trigger" echo "done" ;; stop) echo -n "Stopping LED: " echo "none" > "/sys/class/leds/led2:red:backhaul/trigger" echo "done" ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 { start | stop | restart }" >&2 exit 1 ;; esac exit 0