#!/bin/sh
#usb 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.

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

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

if [ "`lsmod | grep '^cdc_acm'`" != "" ];then
 ln -snf input/ttyACM0 /dev/modem
fi

###END###
