On Saturday 05 November 2011 11:09, 馬克泡 wrote: > Hi all, > > >>> Your question should be directed to whoever maintains > >>> /usr/share/udhcpc/default.script file on your machine / distribution. > >>> It is not coming from busybox. > >> > >> Oh. Sorry, I though the script comes with busybox. > >> It's sorry to waste your time but it helped! > >> I'll both report to ubuntu and report to openwrt. > > > > Can you post the default.script file from the machine where it happens? > > The default script on ubuntu (11.11)
I don't have Ubuntu machine. > I've add the debug message before the command introduce problem. > /usr/share/udhcpc/default.script > > case $1 in > bound|renew) > [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" > [ -n "$subnet" ] && NETMASK="netmask $subnet" > > # print the command as debug message > # where $NETMASK == 255.255.255.255 cannot add routing entry > # related to the interface. > echo "/sbin/ifconfig $interface $ip $BROADCAST $NETMASK"; > /sbin/ifconfig $interface $ip $BROADCAST $NETMASK > > if [ -n "$router" ]; then > echo "$0: Resetting default routes" > # print the command as debug message > # Adding default route will fail if the routing entry > # of this interface hasn't been added to kernel > echo "while /sbin/route del default gw 0.0.0.0 dev $interface; > do :; done" > while /sbin/route del default gw 0.0.0.0 dev $interface; do :; done > > metric=0 > for i in $router; do > echo "/sbin/route add default gw $i dev $interface metric > $metric"; > /sbin/route add default gw $i dev $interface metric $metric > metric=$(($metric + 1)) > done > fi This isn't the complete file. Can you send the complete file? -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
