Stop motd running twice
This commit is contained in:
parent
a4bcc82a42
commit
9b85df20ff
1 changed files with 10 additions and 2 deletions
|
@ -61,8 +61,11 @@ done
|
||||||
|
|
||||||
umask 0022
|
umask 0022
|
||||||
|
|
||||||
set -o emacs
|
if [ -z "$ZSH_VERSION" ]
|
||||||
set -o noclobber
|
then
|
||||||
|
set -o emacs
|
||||||
|
set -o noclobber
|
||||||
|
fi
|
||||||
|
|
||||||
# Locale and language.
|
# Locale and language.
|
||||||
## Clear the existing locale settings and set options I always want.
|
## Clear the existing locale settings and set options I always want.
|
||||||
|
@ -271,6 +274,11 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
usermotd () {
|
usermotd () {
|
||||||
|
if [ -n "$_acp_motd_shown" ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
export _acp_motd_shown=1
|
||||||
printf "\033[7m"; uname -sr; printf "\033[0m"
|
printf "\033[7m"; uname -sr; printf "\033[0m"
|
||||||
if [ -r /etc/os-release ]
|
if [ -r /etc/os-release ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue