#! /bin/sh
MODULE=/usr/local/lib/mod_auth_bsd.so
if [ `id -u` -ne 0 ]; then
    echo "You must be root to run this script."
    exit 0
fi

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