Tiny Core Extensions > TCE Talk

configuration of Tiny Core, as DHCP server and client DHCP

<< < (8/10) > >>

Misalf:
/etc/hosts  is recreated at boot to include the hostname.
You could add something like this to  /opt/bootsync.sh

--- Code: ---cat /path/to/your-custom-hosts-file >> /etc/hosts &

--- End code ---
just below

--- Code: ---/usr/bin/sethostname box

--- End code ---

amonel:
Hi,
I didn't understand,
Please,

Misalf:
Maybe I misunderstood you.
I thought you have edited  /etc/hosts , added it to  /opt/.filetool.lst  and made a backup but your edits were gone after reboot.
If that's correct, then I don't know how to give better instructions.
Otherwise, please rephrase your question.

amonel:
I dit this,
But i lose my data after reboot

amonel:
Here is my configuration:

cat /opt/bootsync.ch
/etc/hosts
/usr/bin/sethostname box
/etc/resolv.conf


cat /etc/hosts
127.0.0.1  localhost
@ip        name1.domain.com
@ip        name2.domain.com


cat /etc/resolv.conf
domain    domain.com
search    domain.com

cat /opt/eth0.sh
echo nameserver @ip > /etc/resolv.conf
echo nameserver @ip >> /etc/resolv.conf
I lose this after reboot

cat /etc/hosts
@ip        name1.domain.com
@ip        name2.domain.com

cat /etc/resolv.conf
domain    domain.com
search    domain.com

cat /opt/eth0.sh
echo nameserver @ip > /etc/resolv.conf
echo nameserver @ip >> /etc/resolv.conf

I try to understand why I lose my configuration, that's my question or my questions????

Thanks for help

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version