1 2 3 4 5 6
#!/bin/bash TRIGGER="/sys/class/leds/led-status/trigger" echo "setting $TRIGGER to heartbeat" echo "heartbeat" > $TRIGGER