motd - unchanged after reboot

Having trouble with motd resetting after a reboot? Find out how to make changes to /etc/motd permanent, especially on the Slackware distribution!

Unix systems have the file /etc/motd (message of the day), which contains information passed to users when they log in. We can freely modify this file, but after a system reboot the file reverts to its previous state. In the Slackware distribution, the file responsible for this is /etc/rc.d/rc.S. We find the line responsible for this process: echo "$(/bin/uname -sr)." > /etc/motd and comment it out at the same time.