Problem with udhcp not working

Ayoub ayoub at ezono.com
Tue May 30 13:32:13 UTC 2006


gopi chand komma wrote:

> hai,
>
> i am building tiny linux system with busy box in a 1.44 mb floppy. 
> every thing is fine . i am able to boot with floppy and get the # prompt.
> But the real problem is when i am giving the udhcpc command at the # 
> prompt i am getting the following error.
>
>
> Udhcpc (v0.9.9-pre) started
> adapter index 2
> Udhcpc[17]:adapter index 2
> adapter hardware address 00:11:d8:01:da:1d
> vforking and execle'ing /usr/share/udhcpc/default.script
> /usr/share/udhcpc/default.script: Nosuch file or directory
> Udhcpc[18]: script /usr/share/udhcpc/default.script failed:no such 
> file or directory
> entering the raw listen mode
> Udhcpc[17]: entering the raw listen mode
> openning raw socket on ifindex2
> Udhcpc[17]:openning raw socket on ifindex2
> Socket call failed :Address family not supported by protocol
> Udhcpc[17]:Socket call failed :Address family not supported by protocol
> FATAL:could'nt listen on socket,Illegal seek
> udhcpc[17]:FATAL:could'nt listen on socket,Illegal seek
>
>
> The above error i am getting.
> Can anyone give me the solution and i need sample default.script file
>
> Thanking you,
> gopiesy
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
here a simple  udhcpc script :

#!/bin/sh

# udhcpc script


[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1


case "$1" in
	deconfig)
		ifconfig $interface 0.0.0.0
		;;

	renew|bound)
		ifconfig $interface $ip $BROADCAST $NETMASK
		;;
esac

exit 0




More information about the busybox mailing list