#!/bin/sh

LOGFILE=/var/adm/pppd_log

# log connection
echo 'PPP serial server start: ' `date` >> $LOGFILE

/bin/setserial /dev/ttyS0 spd_vhi
while :
do
  /usr/sbin/pppd -detach passive asyncmap 0x0 \
    192.168.1.1:192.168.1.2 /dev/ttyS0 38400
  sleep 5
done
