#!/bin/bash
# Copyright 2013 Monterey Bay Aquarium Research Institute, all rights reserved.
# Turn on console Freewave and establish ppp link

# Turn on "console" radio
echo "Disabled console radio - edit /etc/init.d/rc.local to enabled"
echo Turning "console" radio on
/home/smc/bin/SetPowerSwitch 4 1

# Wait for modem to power up
sleep 3

# Start ppp on console radio
/usr/sbin/pppd /dev/ttyLX6 noauth 115200 192.168.1.1:192.168.1.2 persist maxfail 0
