Disable MOTD Spam

Disable the MOTD spam using the following script:

for i in 50-motd-news 80-livepatch; do
  f="/etc/update-motd.d/${i}"
  chmod -x "${f}"
  sed -re $'1c\\\n#!/bin/true' -i "${f}"
done