#!/bin/bash gitrepo="https://git.waggeling.net/kai-waggeling/linux-motd" echo " installing figlet..." apt install figlet &> /dev/null echo "" echo " deleting old scripts..." rm /etc/update-motd.d/* &> /dev/null echo " downloading new scripts..." wget ${gitrepo}/raw/branch/main/%20update-motd.d/10-hostname -O /etc/update-motd.d/10-hostname &> /dev/null wget ${gitrepo}/raw/branch/main/%20update-motd.d/20-sysinfo -O /etc/update-motd.d/20-sysinfo &> /dev/null wget ${gitrepo}/raw/branch/main/%20update-motd.d/30-disks -O /etc/update-motd.d/30-disks &> /dev/null wget ${gitrepo}/raw/branch/main/%20update-motd.d/40-docker -O /etc/update-motd.d/40-docker &> /dev/null echo " set script permissions..." chmod 775 /etc/update-motd.d/10-hostname &> /dev/null chmod 775 /etc/update-motd.d/20-sysinfo &> /dev/null chmod 775 /etc/update-motd.d/30-disks &> /dev/null chmod 775 /etc/update-motd.d/40-docker &> /dev/null echo "" echo " finished..." echo "" echo " test output:" run-parts /etc/update-motd.d/