How to start the udhcp service automatically without adding a command to rc.local(udhcpc -i eth0).
service udhcpc enable
?
or whatever the service is called in init.d.
Yes,
BUSYBOX_CONFIG_UDHCPC = y
can you please elaborate in init.d from which file this service is called?
The question is actually why does it not start automatically by default?
Busybox udhcp is the default DHCP client for the router itself, and it normally starts automatically (at least if you have DHCP typed interface (like wan usually) in the router.
Ps. And the .pid file that you mention in title, is just a process number semaphore file. Not executable.
Based on info from OP, my guess is, the init script isn't there.
Thanks for your response,
target: ar7xxx/ar9xxx
subtarget: Generic
Target profile: GainStrong Oolite V1.0
In my case, DHCP is not started automatically and when I add "udhcpc -i eth0" command in rc.local init file it works.
In which file do I have to change so DHCP service starts working automatically by default?
I have changed the network file(/etc/config/network) for wan interface.
now the DHCP service starts automatically by default.
Thanks.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.