Comment 15 for bug 1873545

Revision history for this message
Ryan Finnie (fo0bar) wrote :

This fails when logging in from the console (see below). Doesn't appear to be affected when logging in via SSH.

The check should probably be [ -z "$EUID" -o "$EUID" -ne 0 ].

Ubuntu 20.04 LTS riscv64-dev ttyS0

riscv64-dev login: ryan
Password:
/etc/update-motd.d/91-release-upgrade: 9: [: Illegal number:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-28-generic riscv64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

0 updates can be installed immediately.
0 of these updates are security updates.

Last login: Mon Jul 6 17:24:50 UTC 2020 on ttyS0
ryan@riscv64-dev:~$