#!/bin/sh
#
# notification script called from uback
# $Revision: 1.1.1.1 $


if [ "x$1" = "x--help" ]; then
    echo "notify: sends a notification message to the admin."
    echo "        notify can be configured in /etc/uback.d/notify."
    echo
    exit 1;
else
    . $1
fi

if [ "x$confdir" = "x" ]; then
    echo "Error: configfile \"$1\" missing or invalid!"
    exit 1;
else
    . $confdir/notify
fi


etc=$base/etc
log=$base/log

shift
MSG=$*

trap 'echo "abort."; exit 127' 1 2 3 15


mail "$MSG"