#!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin cgi_width=560 . /usr/lib/libmodcgi.sh cgi_begin 'Wake on LAN' cat << EOF
$(lang de:"Bekannte Hosts" en:"Known hosts"): (wählen) EOF if [ -r "/tmp/flash/exhosts" ]; then cat /tmp/flash/exhosts | grep -v "^#" | while read -r ip mac interface host desc; do if [ -n "$mac" -a "$mac" != "*" ]; then if [ -n "$interface" -a "$interface" != "*" ]; then value="$mac*$interface" else value="$mac*" fi echo -n '' if [ -n "$desc" ]; then echo -n "$desc" elif [ -n "$host" -a "$host" != "*" ]; then echo -n "$host" else echo -n "$mac" fi echo '' fi done fi cat << EOF
$(lang de:"MAC und Netzwerk-Schnittstelle für Etherwake angeben oder einen der bekannten Hosts wählen." en:"Fill in a MAC address and a network interface for etherwake or select a known host from the drop down list above.")