2020-10-30 09:50:39 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
2022-03-07 16:26:01 +08:00
|
|
|
# Copyright (c) Authors: https://www.armbian.com/authors
|
2020-10-30 09:50:39 +08:00
|
|
|
#
|
|
|
|
|
# This file is licensed under the terms of the GNU General Public
|
|
|
|
|
# License version 2. This program is licensed "as is" without any
|
|
|
|
|
# warranty of any kind, whether express or implied.
|
|
|
|
|
|
|
|
|
|
if [ -n "$PS1" ] && ( [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] ); then
|
|
|
|
|
tput tsl > /dev/null
|
|
|
|
|
if [ "$?" -eq 0 ]; then
|
|
|
|
|
echo `tput tsl` `whoami`@`hostname` `tput fsl`
|
|
|
|
|
fi
|
|
|
|
|
fi
|