#!/bin/bash

LANDOMAIN=intra.bostoncoop.net
WANDOMAIN=extra.bostoncoop.net
NOT_ONLINE_ERR=1
SUCCESS_ERR=0

if ( /sbin/ifconfig | grep 192.168 > /dev/null ) then 
	HOST=$LANDOMAIN
elif ( /sbin/ifconfig | grep eth0 > /dev/null ) then
	HOST=$WANDOMAIN
else
	echo Not online!
	exit $NOT_ONLINE_ERR
fi

cd ~/sandbox
rsync -Caz final $HOST:/home/wiki/lcd


syntax highlighted by Code2HTML, v. 0.9.1