On 8 July 2010 08:07, Baruch Siach <bar...@tkos.co.il> wrote:
> Nothing fancy. I need WiFi for unrestricted outside access, and wired for
> internal servers access. So I just let wicd connect to the default WiFi AP,
> and then do:
>
> # udhcpc -q -s /usr/local/bin/udhcpc.script -i eth0
>
> With udhcpc.script being (lightly edited):
>
> #!/bin/sh
>
> if [ "$1" != "bound" ]; then
>    exit 0
> fi
>
> ifconfig $interface $ip netmask $subnet
>
> # Access the mail server via the wired network when in example.net, since the
> # WiFi connection there is unstable
> if [ "$domain" = "example.net" ]; then
>    for i in $router; do
>        ip route add a.b.c.d via $i dev eth0
>    done
> fi
>

Nice, thanks.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to