WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to update /etc/motd  (Read 1854 times)

Offline temdl84

  • WikiUser
  • *
  • Posts: 2
How to update /etc/motd
« on: September 05, 2013, 09:50:53 PM »
Hi All,

I want to update /etc/motd banner. but it's allways restored after reboot.

I tried to add it to backup and make backup dry and backup also, but it's still restored after reboot.

So how can i update /etc/motd ???

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7797
Re: How to update /etc/motd
« Reply #1 on: September 05, 2013, 11:19:35 PM »
Hi temdl84
Add:
Code: [Select]
etc/motdto your  /opt/.filetool.lst  file. Then run:
Code: [Select]
filetool.sh -b

Offline temdl84

  • WikiUser
  • *
  • Posts: 2
Re: How to update /etc/motd
« Reply #2 on: September 06, 2013, 01:55:06 AM »
Hi Rich,

I have tried but it's not applied after reboot.

my step:
1. add "etc/motd" to /opt.filetool.lst.
2. run filetool.sh -b
-> in this step, mydata.tgz is created at /mnt/sda1/tce
I untar and check mydata.tgz, the etc/motd in mydata.tgz contains the latest content.

as my understood, when system boots, system will restored from mydata.tgz. but in my system, it's not restored from mydata.tgz right????

Regards,
 

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7797
Re: How to update /etc/motd
« Reply #3 on: September 06, 2013, 07:47:15 AM »
Hi temdl84
What does the command:
Code: [Select]
showbootcodesreturn?