home | refactor

This commit is contained in:
Don Harper 2024-01-06 14:02:54 -06:00
parent 672d71a83a
commit 73fadb981d
468 changed files with 197 additions and 210 deletions

View file

@ -0,0 +1,30 @@
#!/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