#!/bin/sh
#
# Script to install wlags49_xx_cs, where xx is:
#   h2 for Hermes-II
#   h25 for Hermes-II.5 and up
#

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 cs_install
fi
	
make -f wlags49.mk pci_install

