3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-01-30 14:52:17 +00:00

Create bootspeak

Speak the IP address of Brooklyn every time it starts up via audio port.
This commit is contained in:
Scare Crowe 2021-06-04 12:50:06 +05:00 committed by GitHub
parent da25e1f405
commit 2c3fa0ca89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
bootspeak Normal file
View File

@ -0,0 +1,7 @@
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
espeak "Welcome to Brooklyn. My I.P. is $_IP. I repeat: $_IP"
else
espeak "Welcome to Brooklyn. No I.P. found."
fi