Tiny Core Base > TCB Q&A Forum
how to disable udhcpc (/etc/init.d/dhcp.sh) ?
(1/1)
lovelypp:
I want to use static ip when bootup. but when bootup, it always get a dynamic ip.
thanks!
GNUser:
The nodhcp boot code does just that.
You'll probably have to write a script or add a boot time command to bootlocal.sh to set your static ip.
Rich:
Hi lovelypp
I have the attached script in my /opt directory. I call it
from /opt/bootlocal.sh like this:
--- Code: ---/opt/eth0.sh
--- End code ---
The pkill udhcpc line disables dhcp.
Adjust the nameserver lines to point where you want your DNS look-ups to be handled.
lovelypp:
thanks.
I use the nodhcp bootcode and it solved.
Navigation
[0] Message Index
Go to full version