#!/bin/sh
#
# $OpenBSD: mod_auth_radius-enable,v 1.1.1.1 2001/09/01 15:26:13 jcs Exp $

MODULE=/usr/local/lib/mod_auth_radius.so

if [ `id -u` -ne 0 ]; then
    echo "You must be root to run this script."
    exit
fi

if [ ! -f ${MODULE} ]; then
    echo "Cannot find mod_auth_radius module (${MODULE})"
    exit 1
else
    echo "Enabling RADIUS Authentication module..."
    /usr/sbin/apxs -i -a -n radius_auth ${MODULE}
fi
