availability of /usr/share/udhcpc/default.script

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Fri Sep 23 12:35:15 UTC 2005


Quoting Sachin Rane <sachin.rane at lgsoftindia.com>:
> Hi,
> I am using Busybox to configure diskless client.
> On execution of "ifup eth0" command on the diskless client, it gives an
> error '/usr/share/udhcpc/default.script' not found.
[--SNIP--]
> Shall the 'BusyBox' user get the 'default-script' from:
> 1.	get the 'default.script' from the 'udhcpc' rpm package for
> 'mandrake'
> 2.	get it from above mentioned mailing list
> 3.	write its own 'default.script'

Most probably, you'll have to write your own. Look at busybox sources, in
networking/udhcp. There is README.udhcpc which explains what that script
is exptected to do, and what is given to that script.

Just to begin and see what happens if the doc is not too clear for you,
you could have something like in that script:
---8<---
#!/bin/ash
echo "Cmdline: $@"
echo "Env:"
env
---8<---

Then adapt whith something like:
---8<---
#!/bin/ash
case "$1" in
 foo) blablabla;;
 bar) blablabla;;
 buz) blablabla;;
esac
---8<---

Regards,
Yann E. MORIN.

--
Yann E. MORIN
Roaming in the world...



More information about the busybox mailing list