Updated setup
This commit is contained in:
parent
108d7607df
commit
4a18b13772
33
setup.sh
33
setup.sh
@ -2,36 +2,5 @@
|
||||
bash -c "sudo apt install inxi -y"
|
||||
bash -c "sudo mkdir /etc/update-motd.d/old"
|
||||
bash -c "sudo mv /etc/update-motd.d/* /etc/update-motd.d/old/"
|
||||
bash -c "sudo cat >> /etc/update-motd.d/00-custom<<EOF
|
||||
#!/bin/sh
|
||||
echo
|
||||
printf "Welcome to %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname-m)"
|
||||
echo
|
||||
|
||||
# Reuired Packages - sudo apt install inxi
|
||||
echo "GENERAL-SYSTEM-INFORMATION"
|
||||
echo
|
||||
echo "SYSTEM-IP-ADDRESSES"
|
||||
ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
|
||||
echo
|
||||
echo
|
||||
echo "SYSTEM-STORAGE"
|
||||
export TERM=xterm; inxi -D
|
||||
echo
|
||||
echo
|
||||
echo "TMUX PREFIX"
|
||||
echo "J"
|
||||
echo
|
||||
if [ -x /usr/share/unattended-upgrades/update-motd-unattended-upgrades ]; then
|
||||
exec /usr/share/unattended-upgrades/update-motd-unattended-upgrades
|
||||
fi
|
||||
echo
|
||||
if [ -x /usr/lib/update-notifier/update-motd-fsck-at-reboot ]; then
|
||||
exec /usr/lib/update-notifier/update-motd-fsck-at-reboot
|
||||
fi
|
||||
echo
|
||||
if [ -x /usr/lib/update-notifier/update-motd-reboot-required ]; then
|
||||
exec /usr/lib/update-notifier/update-motd-reboot-required
|
||||
fi
|
||||
EOF"
|
||||
bash -c 'sudo wget https://git.ncltech.co.uk/api/v1/repos/Phil/update-motd.d/raw/00-custom -O /etc/update-motd.d/00-custom
|
||||
bash -c "sudo chmod +x /etc/update-motd.d/00-custom"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user