add ~/.bash*
This commit is contained in:
parent
f38125626a
commit
f6485eb7e4
12 changed files with 1115 additions and 0 deletions
30
home/files/bash_motd_ownscript.sh
Normal file
30
home/files/bash_motd_ownscript.sh
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue