#!/bin/sh
# This script can be used to insert extra modem commands before connecting.
# This could for example be to input PIN or configure the modem.
# By default it does nothing.
#
# Robin Stridh <robin.stridh@acte.se>

{
    read DEV
    read BAUDRATE
} < /etc/ppp/peers/provider
MODEM=$(readlink /etc/ppp/peers/provider)
#OBR=$(stty -F $DEV speed $BAUDRATE)
logger -t ppp_on_boot "$MODEM: $DEV, $BAUDRATE"
#stty -F $DEV speed $OBR
