openbsd-ports/www/mod_bandwidth/files/mod_bandwidth-enable
2006-10-18 14:58:30 +00:00

18 lines
409 B
Bash

#!/bin/sh
# $OpenBSD: mod_bandwidth-enable,v 1.1.1.1 2006/10/18 14:58:30 ajacoutot Exp $
MODULE=!!PREFIX!!/lib/mod_bandwidth.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_bandwidth module (${MODULE})"
exit 1
else
echo "Enabling Bandwidth module..."
/usr/sbin/apxs -i -a -n bandwidth ${MODULE}
fi