#!/bin/sh
SELF_DIR="$( cd "$(dirname "$0")" ; pwd -P )"

# set this if compatibility with the old /dev/oem2k* device nodes is needed
AJA_LOAD_OLD_DEV_NAMES=0

if [ `id -u` != "0" ]; then
    echo "error: You must have superuser privileges to run this script."
    exit 13
fi

# install modules into kernel
/sbin/insmod "$SELF_DIR/ajantv2.ko" 2>/dev/null
if [ $? -eq 0 ]; then
    echo "loaded ajantv2 driver module"
fi

/sbin/insmod "$SELF_DIR/ajardma.ko" 2>/dev/null
if [ $? -eq 0 ]; then
    echo "loaded ajardma driver module"
fi

