Bug#646961: #646961 (was: D-I changes needed for xterm transition)
2011/11/20 Michael Tokarev <mjt@tls.msk.ru>:
> So maybe freebsd route can recognize and skip this "gw"
> keyword between source and destination?
I can't tell beforehand. I'll discuss this with upstream.
> Or alternatively, maybe it is better to teach linux route
> to not require this "gw" (it gives syntax error if "gw" is
> not used).
Not my call here, we'd have to talk with net-tools maintainers (Debian
or upstream). I think I'd rather just do this on GNU/kFreeBSD side if
possible.
> - while /sbin/route del default gw 0.0.0.0 dev $interface; do :; done
> + if [ ${uname} = "GNU/kFreeBSD" ] ; then
> + /lib/freebsd/route -q flush
> + else
> + while /sbin/route del default gw 0.0.0.0 dev $interface; do :; done
> + fi
>
> appears to be not required, the loop (with command line corrections)
> works on freeBSD too. But I'm not sure this change is right in the
> first place: isn't `route flush' flushes _all_ routes, not only the
> default one?
I'll investigate.
> What do you think about this?
I can't resolve this today, but please don't let it delay the upload.
The other issues are far more important, and /sbin/route transition
can wait a few more weeks IMHO.
Thank you
--
Robert Millan
Reply to: