On Mon, Jul 30, 2001 at 12:58:26PM -0400, Walter Tautz wrote:
> is there a way to have the system to automagically
> use the modem if the ethernet wasn't plugged in
> or vice versa?

if you use it on a notebook and connect to a dhcp server you can use
something like this

#!/bin/sh

ETHIP=`/sbin/ifconfig | grep -A 4 eth0 | awk '/inet/ { print $2 } ' | sed -e
s/a
ddr://`

if [ "$ETHIP" = "" ]
then
  # put your ppp dial  script in here
fi

-- 
factline Krisper Fabro Harnoncourt OEG (www.factline.com)

Reply via email to