@@ -16,23 +16,35 @@ function adjust_motd() {
1616 # show motd description
1717 motd_desc () {
1818 case $1 in
19- clear)
19+ clear|00-clear )
2020 echo " Clear screen on login"
2121 ;;
22- header)
23- echo " Show header with logo"
22+ header|10-armbian-header )
23+ echo " Show header with logo and version info "
2424 ;;
25- sysinfo )
26- echo " Display system information "
25+ ap-info|15-ap-info )
26+ echo " Display active Wi-Fi access point (SSID, channel) "
2727 ;;
28- tips )
29- echo " Show Armbian team tips "
28+ ip-info|20-ip-info )
29+ echo " Show LAN/WAN IPv4 and IPv6 addresses "
3030 ;;
31- commands)
31+ containers-info|25-containers-info)
32+ echo " List running Docker containers"
33+ ;;
34+ sysinfo|30-armbian-sysinfo)
35+ echo " Display performance and system information"
36+ ;;
37+ tips|35-armbian-tips)
38+ echo " Show helpful tips and Armbian resources"
39+ ;;
40+ commands|41-commands)
3241 echo " Show recommended commands"
3342 ;;
43+ autoreboot-warn|98-armbian-autoreboot-warn)
44+ echo " Warn about pending automatic reboot after update"
45+ ;;
3446 * )
35- echo " No description"
47+ echo " No description available "
3648 ;;
3749 esac
3850 }
@@ -53,7 +65,7 @@ function adjust_motd() {
5365 done
5466
5567 INLIST=($( grep THIS_SCRIPT= /etc/update-motd.d/* | cut -d" =" -f2 | sed " s/\" //g" ) )
56- CHOICES=$( $DIALOG --separate-output --nocancel --title " Adjust welcome screen" --checklist " " 11 50 5 " ${LIST[@]} " 3>&1 1>&2 2>&3 )
68+ CHOICES=$( $DIALOG --separate-output --nocancel --title " Adjust welcome screen" --checklist " " 14 76 8 " ${LIST[@]} " 3>&1 1>&2 2>&3 )
5769 INSERT=" $( echo " ${INLIST[@]} " " ${CHOICES[@]} " | tr ' ' ' \n' | sort | uniq -u | tr ' \n' ' ' | sed ' s/ *$//' ) "
5870 # adjust motd config
5971 sed -i " s/^MOTD_DISABLE=.*/MOTD_DISABLE=\" $INSERT \" /g" /etc/default/armbian-motd
0 commit comments