#! /bin/bash
cd "$(dirname "$0")"

if [ `whoami` != "root" ]; then
 echo "Please run this script as root."
 exit
fi

if [ "$1" == "" ]; then
 echo "Usage: log log_name message"
 exit
fi

if [ "$2" == "" ]; then
 echo "Usage: log log_name message"
 exit
fi

echo [$(date)]: "$2" >> "$1"
