#!/bin/sh
#
# Script to install wlags49_xx_cs, where xxis:
#   h1 for Hermes-I
#   h2 for Hermes-II
#

if [ -r config.out ] ; then
    . ./config.out 2>/dev/null
else
    echo ""
    echo "Error: Run 'make config' first!"
    echo ""
    exit 1
fi

if [ $EUID != 0 ] ; then
    echo "Need to be root to install."
    exit 1
fi

if [ "$CONFIG_PCMCIA" = "" ] ; then
    echo "This system uses standalone pcmcia-cs."
    make install
else
    make -f wlags49.mk install
fi

