WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: why?I modify the /etc/hosts ,it restored after reboot  (Read 4383 times)

Offline guweihua

  • Newbie
  • *
  • Posts: 2
why?I modify the /etc/hosts ,it restored after reboot
« on: October 01, 2016, 07:38:56 PM »
I was modifed the /opt/.filetool.lst
echo etc > .filetool.lst

then modify the hosts file , and reboot . it restored in default

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 402
Re: why?I modify the /etc/hosts ,it restored after reboot
« Reply #1 on: October 01, 2016, 08:52:49 PM »
I would not add all of etc to /opt/.filetool.sh

Did you do a "sudo filetool.sh -b"?

If you are just setting the hostname, then just add the "host=xxxxx" bootcode.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: why?I modify the /etc/hosts ,it restored after reboot
« Reply #2 on: October 02, 2016, 12:32:25 AM »
/etc/hosts is rewritten by the boot process, if you have your own copy, remove the sethostname call from bootsync.sh.
The only barriers that can stop you are the ones you create yourself.