17 lines
256 B
Bash
17 lines
256 B
Bash
#!/usr/bin/env bash
|
|
|
|
HOMEDIR=$HOME
|
|
USERNAME=$(whoami)
|
|
|
|
USE_SUDO=''
|
|
if [ $USERNAME != "root" ];
|
|
then
|
|
USE_SUDO="sudo "
|
|
fi
|
|
|
|
# install the motd
|
|
cp motd /usr/local/bin/
|
|
chmod +x /usr/local/bin/motd
|
|
|
|
#install the maintenance file
|
|
cp motd-maint /etc/motd-maint
|