#!/bin/bash

if [ $EUID != 0 ] ; then
	echo "installer must be run as root"
	exit
fi

cd /dstar/tools
curl -O http://www.opendstar.org/tools/G2/dplus-2.1c
mv dplus-2.1c dplus
chmod 755 dplus
curl -O http://www.opendstar.org/tools/G2/dplus-grab-tables.sh
chmod 755 dplus-grab-tables.sh

echo "dplus updated to 2.1c release for v1"
