#!/bin/sh

cname=`scutil --get ComputerName`
export CNAME=$cname

echo "" > /tmp/wakereasons.txt
echo "// wakelog" >> /tmp/wakereasons.txt
echo "  " `date` >> /tmp/wakereasons.txt
echo "   machine: ${cname}" >> /tmp/wakereasons.txt
echo "-------------------------------------------------------------------"
