#!/bin/sh

logger "InitPPP"

usb_ok_file=/var/local/telem/usb-ok
start_ppp=/usr/local/bin/ppp/StartPPP

while true; do
    if [ -e "$usb_ok_file" ]; then
        $start_ppp &
        exit 0
    else
        sleep 1
    fi
done
