On Sun Mar 30, 2003 at 10:53:35PM +0200, Bastian Blank wrote: > On Sat, Mar 29, 2003 at 06:39:35PM +0100, Martin Sj?gren wrote: > > insmod is not currently in the busybox-cvs-udeb package, but can be > > added, I don't know at what cost, but that gets rid of modutils-basic > > (90684 B). > > it costs about 12kb on i386. > > > Replacing pump, dash and busybox with busybox-cvs got me down to -15k. > > Hopefully removing mkswap, swapon, swapoff, telnet, chroot and telnetd > > brings us up to positive again. ;) Unfortunately, udhcpc in busybox-cvs > > didn't seem to work. :/ > > udhcpc works, but it needs a script to operate correctly.
It works great. Just drop this in as your /usr/share/udhcpc/default.script file and you are good to go: #!/bin/sh # udhcpc script edited by Tim Riker <[EMAIL PROTECTED]> [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 RESOLV_CONF="/etc/resolv.conf" [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet" case "$1" in deconfig) /sbin/ifconfig $interface 0.0.0.0 ;; renew|bound) /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 : done for i in $router ; do route add default gw $i dev $interface done fi 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 done ;; esac exit 0 -Erik -- Erik B. Andersen http://codepoet-consulting.com/ --This message was written using 73% post-consumer electrons--
pgp00000.pgp
Description: PGP signature