WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline guweihua

  • WikiUser
  • *
  • Posts: 2
why?I modify the /etc/hosts ,it restored after reboot
« on: October 01, 2016, 06: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

  • Full Member
  • ***
  • Posts: 198
Re: why?I modify the /etc/hosts ,it restored after reboot
« Reply #1 on: October 01, 2016, 07: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: 9611
Re: why?I modify the /etc/hosts ,it restored after reboot
« Reply #2 on: October 01, 2016, 11:32:25 PM »
/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.