30 lines
800 B
Bash
30 lines
800 B
Bash
#!/usr/bin/env bash -
|
|
#===============================================================================
|
|
#
|
|
# FILE: .bash_motd_ownscript.sh
|
|
#
|
|
# USAGE: ./.bash_motd_ownscript.sh
|
|
#
|
|
# DESCRIPTION:
|
|
#
|
|
# OPTIONS: ---
|
|
# REQUIREMENTS: ---
|
|
# BUGS: ---
|
|
# NOTES: ---
|
|
# AUTHOR: Don Harper (dmh), duck@duckland.org
|
|
# ORGANIZATION: duckland.org
|
|
# CREATED: 01/28/2022 21:23
|
|
# REVISION: ---
|
|
#===============================================================================
|
|
|
|
set -o nounset # Treat unset variables as an error
|
|
|
|
if [ "$(pgrep -c tailscaled)" = "1" ]
|
|
then
|
|
printf "\\n"
|
|
printf " \\033[1;37mTailScale:\\033[0m\\n"
|
|
tailscale status | while read -r line
|
|
do
|
|
printf " %s\n" "${line}"
|
|
done
|
|
fi
|