better orginization under home/files
This commit is contained in:
parent
f6485eb7e4
commit
4a618b8f51
11 changed files with 10 additions and 10 deletions
30
home/files/bash/bash_motd_ownscript.sh
Normal file
30
home/files/bash/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