Welcome
|
FAQ
|
Downloads
|
Wiki
Tiny Core Linux
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Learn Tiny Core. View Tiny Core
Screen Shots and Videos
.
Home
Help
Login
Register
Tiny Core Linux
»
Tiny Core Base
»
Micro Core
»
why?I modify the /etc/hosts ,it restored after reboot
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: why?I modify the /etc/hosts ,it restored after reboot (Read 4832 times)
guweihua
Newbie
Posts: 2
why?I modify the /etc/hosts ,it restored after reboot
«
on:
October 01, 2016, 10: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
Logged
Greg Erskine
Sr. Member
Posts: 404
Re: why?I modify the /etc/hosts ,it restored after reboot
«
Reply #1 on:
October 01, 2016, 11: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.
Logged
curaga
Administrator
Hero Member
Posts: 11044
Re: why?I modify the /etc/hosts ,it restored after reboot
«
Reply #2 on:
October 02, 2016, 03:32:25 AM »
/etc/hosts is rewritten by the boot process, if you have your own copy, remove the sethostname call from bootsync.sh.
Logged
The only barriers that can stop you are the ones you create yourself.
Print
Pages: [
1
]
Go Up
« previous
next »
Tiny Core Linux
»
Tiny Core Base
»
Micro Core
»
why?I modify the /etc/hosts ,it restored after reboot