Tiny Core Base > TCB Q&A Forum
[SOLVED] Ip address is not permanent?
xyz-worx:
Hi plug,
as fas as I know, commands in bootlocal.sh are executed with root access permission.
'sudo' should not be necessary.
regards
xyz-worx
bmarkus:
--- Quote from: plug on November 21, 2014, 10:12:31 AM ---I wrote in bootlocal.sh manual configuration:
sudo ifconfig eth0 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255 up
sudo route add default gw192.168.10.1
--- End quote ---
You are missing /etc/resolv.conf
plug:
thanks xyz-worx and bmarkus,
already done...but i have a huge problem:
it isn't permanent the file /etc/hosts.
I written the file bootlocal.sh the content of file hosts but .. nothing. It it is not written.
I attempted with also with root privilege, but nothing ....know how to do this?
Thanks
gerald_clark:
We can't identify the problem when you don't show us what you have done.
Show us your bootlocal.sh.
Instead of writing files in bootlocal.sh, why not add the modified files to .filetool.lst and do a backup ?
plug:
ok,
bootlocal.sh
------------------------
#!/bin/sh
ifconfig eth0 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255 up
route add default gw 192.168.10.1
echo pc1 > /etc/hostname
echo 127.0.0.1 localhost localhost.local > /etc/hosts
echo 192.168.10.1 pc1 > /etc/hosts
echo 192.168.10.2 pc2 > /etc/hosts
echo nameserver 192.168.10.1 > /etc/resolv.conf
/opt/eth0.sh &
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version