# The machine page's console is an xterm, but the launcher hands the shell # TERM=dumb, and full-screen tools (minicom) refuse a terminal with no cursor motion. if [ "${TERM:-dumb}" = dumb ]; then export TERM=xterm-256color; fi # Nothing else prints /etc/motd here: the guest has no login, and /etc/profile is empty. # Read by bash itself: busybox cat copies with sendfile(2), which hangs on the served runtime. case $- in *i*) if [ -s /etc/motd ]; then while IFS= read -r l || [ -n "$l" ]; do printf '%s\n' "$l"; done