#!/bin/sh
#
# $OpenBSD: mod_layout-enable,v 1.1.1.1 2003/05/25 19:57:56 naddy Exp $

MODULE=/usr/local/lib/mod_layout.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_layout module (${MODULE})"
	exit 1
else
	echo "Enabling Layout module..."
	/usr/sbin/apxs -i -a -n layout ${MODULE}
fi
