Page 1 of 1

/etc/motd restored after reboot

Posted: 11 Apr 2013, 04:29
by gonk
Yesterday I had to restart my B3 after 145 day of consecutive uptime due to dnsmasq freaking out after having disconnected the WAN network cable.

After the reboot I noticed that the motd displayed when logging in via SSH had been reset to the default one.

My questions are
  • Which files/configurations are restored after a reboot?
  • Which is the proper way to make permanent changes?

Re: /etc/motd restored after reboot

Posted: 12 Apr 2013, 17:51
by Cheeseboy
Hi gonk,

You can create the file /etc/motd.tail which will be appended to the motd.
This will persist after a reboot. If you want to change it more than that, have a look in /etc/init.d/bootlogs - this is where the file is generated on start-up.
Cheers,

Cheeseboy