#!/bin/sh
#usb/serial modem
#Barry Kauler, LGPL 2007
#called from rc.local0. note, rc.local0 calls rc.modem beforehand which
#sets /dev/modem if a serial modem found (otherwise /dev/modem deleted).

#if a modem found, quit...
[ -e /dev/modem ] && exit

[ ! $1 ] && exit
[ "$1" != "start" ] && exit

if [ "`lsmod | grep '^pl2303'`" != "" ];then
 ln -snf usb/ttyUSB0 /dev/modem
fi

###END###
