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
21 lines
285 B
Bash
Executable File
21 lines
285 B
Bash
Executable File
#!/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
|