bb07b6a262
Submitted by Xavier Santolaria <xavier@santolaria.net>. mod_random provides three services. The first service is as a redirector. The second is that it provides environmental variables that can be used for doing ad banner systems. The third is that it can be used to display entire pages of random html.
19 lines
374 B
Bash
19 lines
374 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_random-enable,v 1.1.1.1 2003/05/26 14:24:11 naddy Exp $
|
|
|
|
MODULE=!!PREFIX!!/lib/mod_random.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_random module (${MODULE})"
|
|
exit 1
|
|
else
|
|
echo "Enabling Random module..."
|
|
/usr/sbin/apxs -i -a -n random ${MODULE}
|
|
fi
|