Skip to content

Commit

Permalink
When using CLI / minimal image, lets show motd right after initial co…
Browse files Browse the repository at this point in the history
…nfig is done
  • Loading branch information
igorpecovnik committed Sep 4, 2024
1 parent 772c753 commit 0d4cdb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bsp/common/usr/lib/armbian/armbian-firstlogin
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,9 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
who -la | grep root | grep -q tty1 && exit 1

else
# no display manager detected
# no display manager detected -> clear screen and show motd
run-parts --lsbsysinit /etc/update-motd.d

# Display reboot recommendation if necessary
if [[ -f /var/run/resize2fs-reboot ]]; then
printf "\n\n\e[0;91mWarning: a reboot is needed to finish resizing the filesystem \x1B[0m \n"
Expand Down

0 comments on commit 0d4cdb8

Please sign in to comment.