#!/bin/sh
#
# Script to use chat to reset the modem for dialing in.

if ! [ -r $1 ]; then
	exit 0
fi

/usr/bin/chat '' ATZ OK ATS0=1 OK < $1 > $1
