Re: busybox ash, insmod and udhcpc
On Mon Nov 18, 2002 at 11:43:50PM +0100, Tollef Fog Heen wrote:
> * Tollef Fog Heen
> | | Hmm. Did you include an /usr/share/udhcpc/default.script file?
> | No, but it doesn't make any difference if I do. I just tested.
> I found the problem, udhcpc doesn't bring up the interface at all.
I don't know what you put in your script, but it wasn't
the right stuff, or udhcpc would have used it to bring
up the interface. Try this (and be sure it is executable),
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
# udhcpc script edited by Tim Riker <Tim@Rikers.org>
[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
case "$1" in
/sbin/ifconfig $interface 0.0.0.0
/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
if [ -n "$router" ] ; then
echo "deleting routers"
while route del default gw 0.0.0.0 dev $interface ; do
for i in $router ; do
route add default gw $i dev $interface
echo -n > $RESOLV_CONF
[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
for i in $dns ; do
echo adding dns $i
echo nameserver $i >> $RESOLV_CONF