#!/bin/sh
# ---------------------------------------------------------------------------
# NAME
#
#     RacomPowerOn - power on sequence for Racom Radio modem on the SMC for Mobile WGMS usage
#
#
# DESCRIPTION
#
#     Power on the ethernet switch and Racom Radio Modem, assign static IP to SMC,
#     wait for Racom startup
#
# ---------------------------------------------------------------------------

# Power on the Ethernet switch
sudo SetPowerSwitch 2 1

# Power on the Racom Radio Modem
sudo SetPowerSwitch 3 1

# enable ethernet adapter with static IP
sudo ifconfig eth0 10.119.2.66 netmask 255.255.255.248 up

# Wait for Racom to startup
sleep 50

# setup gateway address
sudo route add default gw 10.119.2.65
sleep 1

