18 lines
404 B
Bash
18 lines
404 B
Bash
#!/bin/sh
|
|
# $OpenBSD: mod_auth_bsd-enable,v 1.1.1.1 2004/07/11 06:54:50 jolan Exp $
|
|
|
|
MODULE=_PREFIX_/lib/mod_auth_bsd.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 auth_bsd module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling BSD Authentication module..."
|
|
/usr/sbin/apxs -i -a -n bsd_auth ${MODULE}
|
|
fi
|