Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

/etc/motd restored after reboot

Got problems with your B2 or B3? Share and get helped!
Post Reply
gonk
Posts: 93
Joined: 30 May 2012, 01:53

/etc/motd restored after reboot

Post 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?
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: /etc/motd restored after reboot

Post 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
Post Reply