#!/bin/sh
if [ -e /etc/update-motd.d/10-armbian-header ]; then /etc/update-motd.d/10-armbian-header; fi
if [ -e /etc/update-motd.d/30-armbian-sysinfo ]; then /etc/update-motd.d/30-armbian-sysinfo; fi
if [ -e /etc/update-motd.d/41-armbian-config ]; then /etc/update-motd.d/41-armbian-config; fi

printf "
        ███╗   ██╗ █████╗ ███╗   ██╗ ██████╗ ██╗  ██╗██╗   ██╗███╗   ███╗
        ████╗  ██║██╔══██╗████╗  ██║██╔═══██╗██║ ██╔╝██║   ██║████╗ ████║
        ██╔██╗ ██║███████║██╔██╗ ██║██║   ██║█████╔╝ ██║   ██║██╔████╔██║
        ██║╚██╗██║██╔══██║██║╚██╗██║██║   ██║██╔═██╗ ╚██╗ ██╔╝██║╚██╔╝██║
        ██║ ╚████║██║  ██║██║ ╚████║╚██████╔╝██║  ██╗ ╚████╔╝ ██║ ╚═╝ ██║
        ╚═╝  ╚═══╝╚═╝  ╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚═╝  ╚═╝  ╚═══╝  ╚═╝     ╚═╝

    Welcome to NanoKVM - The Open Source KVM over IP on NanoKVM-Pro
    ____________________________________________________________________________

    Useful commands:
      * Preventing kernel messages in the console:  dmesg -n 1
      * Changing the Web UI password:  kvmd-htpasswd set admin
      * Changing the root password:    passwd

    Links:
      * Official website:  https://pikvm.org
      * Documentation:     https://docs.pikvm.org
      * Auth & 2FA:        https://docs.pikvm.org/auth
      * Sipeed Wiki:       https://wiki.sipeed.com

"

if [ -e /etc/motd.custom ]; then cat /etc/motd.custom; fi
