gluon-blink: add command to make the current device's status led blink

This allows a user to find out which device he's connected to by running
gluon-blink

The command will trigger a fast-blinnk on the status led
This commit is contained in:
Maciej Krüger 2022-03-05 21:38:32 +01:00
parent 31124ac687
commit ef96b0b177
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -0,0 +1,20 @@
#!/bin/sh
# Makes your current device blink
. /etc/diag.sh
start() {
set_led_state preinit
}
stop() {
status_led_off
}
trap stop EXIT SIGTERM SIGINT
start
echo "Blinking on $(pretty-hostname) ($(cat /lib/gluon/core/sysconfig/primary_mac)) ... (ctrl-c to stop)"
sleep infinity