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:
Language translations
now possible!
Home
Help
Login
Register
Tiny Core Linux
»
Tiny Core Base
»
TCB Q&A Forum
»
how to disable udhcpc (/etc/init.d/dhcp.sh) ?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: how to disable udhcpc (/etc/init.d/dhcp.sh) ? (Read 1491 times)
lovelypp
Jr. Member
Posts: 51
how to disable udhcpc (/etc/init.d/dhcp.sh) ?
«
on:
March 21, 2023, 08:28:09 PM »
I want to use static ip when bootup. but when bootup, it always get a dynamic ip.
thanks!
Logged
GNUser
Wiki Author
Hero Member
Posts: 1510
Re: how to disable udhcpc (/etc/init.d/dhcp.sh) ?
«
Reply #1 on:
March 21, 2023, 08:44:45 PM »
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.
Logged
Rich
Administrator
Hero Member
Posts: 11627
Re: how to disable udhcpc (/etc/init.d/dhcp.sh) ?
«
Reply #2 on:
March 21, 2023, 09:52:11 PM »
Hi lovelypp
I have the attached script in my /opt directory. I call it
from /opt/bootlocal.sh like this:
Code:
[Select]
/opt/eth0.sh
The pkill udhcpc line disables dhcp.
Adjust the nameserver lines to point where you want your DNS look-ups to be handled.
Logged
lovelypp
Jr. Member
Posts: 51
Re: how to disable udhcpc (/etc/init.d/dhcp.sh) ?
«
Reply #3 on:
March 27, 2023, 06:22:11 AM »
thanks.
I use the nodhcp bootcode and it solved.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Tiny Core Linux
»
Tiny Core Base
»
TCB Q&A Forum
»
how to disable udhcpc (/etc/init.d/dhcp.sh) ?