From 108d7607dfb825815d4aca24620a416e483b8ac9 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 11 Jun 2022 09:34:56 +0100 Subject: [PATCH] Added 00-custom file --- 00-custom | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 00-custom diff --git a/00-custom b/00-custom new file mode 100755 index 0000000..4da6c19 --- /dev/null +++ b/00-custom @@ -0,0 +1,30 @@ +#!/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