#!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin cgi_width=560 . /usr/lib/libmodcgi.sh eval "$(modcgi mac:interf wol)" if [ -z "$WOL_MAC" ]; then cgi_begin '$(lang de:"Fehler" en:"Error")' echo "

$(lang de:"Fehler" en:"Error"): $(lang de:"Keine MAC Adresse angegeben" en:"no MAC address given")

" cgi_end exit 1 fi cgi_begin '$(lang de:"Wecke '\"$WOL_MAC\"' auf..." en:"Wake up '\"$WOL_MAC\"'...")' echo -n '
sending magic frame...'

if [ -z "$WOL_INTERF" ]; then
	ether-wake "$WOL_MAC" 2>&1
else
	ether-wake -i "$WOL_INTERF" "$WOL_MAC" 2>&1
fi

echo 'done.
' echo '
' cgi_end