diff --git a/boot-medium/config/includes.chroot/opt/tuxflotte/banner.txt b/boot-medium/config/includes.chroot/opt/tuxflotte/banner.txt new file mode 100644 index 0000000..ec2ff4d --- /dev/null +++ b/boot-medium/config/includes.chroot/opt/tuxflotte/banner.txt @@ -0,0 +1,36 @@ + _______ _ ___ ________ _ ____ _______ _______ ______ +|__ __| | | \ \ / / ____| | / __ \__ __|__ __| ____| + | | | | | |\ V /| |__ | | | | | | | | | | | |__ + | | | | | | > < | __| | | | | | | | | | | | __| + | | | |__| |/ . \| | | |___| |__| | | | | | | |____ + |_| \____//_/ \_\_| |______\____/ |_| |_| |______| + + + + ########## + #### ### + ## ## + ## ### ## + ## ### ######## + ## # ###### + ## ### + # ## + # # + # ########## + ########### # ### + ### ### # ### + ## ### ## # + # ## ## ########### + ######### ## # ### ## + #### ## ## ## ## + ## ### #### + # ### ######### + ############### ## + ### ## + ## ############## + # #### + ## ## + ## ### + # # + # ## + ## # diff --git a/boot-medium/config/includes.chroot/opt/tuxflotte/scripts/boot-autostart.sh b/boot-medium/config/includes.chroot/opt/tuxflotte/scripts/boot-autostart.sh index 1661530..f30547a 100755 --- a/boot-medium/config/includes.chroot/opt/tuxflotte/scripts/boot-autostart.sh +++ b/boot-medium/config/includes.chroot/opt/tuxflotte/scripts/boot-autostart.sh @@ -13,6 +13,15 @@ set -Eeuo pipefail # im systemd-Unit) in eine Logdatei - per SSH/Konsole nachtraeglich # einsehbar, ohne journalctl zu brauchen. LOG_FILE="/var/log/tuxflotte-installer.log" +BANNER_FILE="/opt/tuxflotte/banner.txt" + +# Begruessungsbanner (Tuxflotte-Schriftzug + Flotten-Grafik, 80 Spalten) - +# reine Optik, ins Logfile mitschreiben schadet nicht, aber nicht fatal +# wenn die Datei mal fehlt (set -e: "if" statt "&&", sonst wuerde ein +# fehlendes Banner das ganze Skript beenden). +if [[ -r "${BANNER_FILE}" ]]; then + { cat "${BANNER_FILE}"; echo; } | tee -a "${LOG_FILE}" +fi /opt/tuxflotte/scripts/installer.sh 2>&1 | tee -a "${LOG_FILE}" STATUS="${PIPESTATUS[0]}" diff --git a/scripts/boot-autostart.sh b/scripts/boot-autostart.sh index 1661530..f30547a 100755 --- a/scripts/boot-autostart.sh +++ b/scripts/boot-autostart.sh @@ -13,6 +13,15 @@ set -Eeuo pipefail # im systemd-Unit) in eine Logdatei - per SSH/Konsole nachtraeglich # einsehbar, ohne journalctl zu brauchen. LOG_FILE="/var/log/tuxflotte-installer.log" +BANNER_FILE="/opt/tuxflotte/banner.txt" + +# Begruessungsbanner (Tuxflotte-Schriftzug + Flotten-Grafik, 80 Spalten) - +# reine Optik, ins Logfile mitschreiben schadet nicht, aber nicht fatal +# wenn die Datei mal fehlt (set -e: "if" statt "&&", sonst wuerde ein +# fehlendes Banner das ganze Skript beenden). +if [[ -r "${BANNER_FILE}" ]]; then + { cat "${BANNER_FILE}"; echo; } | tee -a "${LOG_FILE}" +fi /opt/tuxflotte/scripts/installer.sh 2>&1 | tee -a "${LOG_FILE}" STATUS="${PIPESTATUS[0]}"