#!/bin/sh export DATE="13.03.2006" export TITLE="Verwaltung: DHCP-LAN" . ${0%/*}/cgi-bin-pre.sh cat<Verwaltung: DHCP EOF xnode="$(nvram get ff_ipxnode)" if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then cat<
$(cat /var/run/dhcp.leases | awk '{print ""}')
Standort:
DHCP: Beispiel: 11:11:11:11:11 10.76.77.8
 
   
Folgende IP-Adresse wird vorgeschlagen:
192.168.1.2

Folgende Clients sind online:

"$2" = "$4" (derzeit "$3")

Tipp:

EOF else eval $(echo "$QUERY_STRING"|awk -F'&' '{for(i=1;i<=NF;i++){print $i}}') DIRTY= if [ -n "$post_adress" ]; then rm /etc/ethers for V in ff_ipserver; do eval "C=\$$V" C=$(unescape $C) echo $C > /etc/ethers if [ "$C" != "$(nvram get $V)" ]; then DIRTY=1 nvram set $V="$C" fi done fi if [ -n "$DIRTY" ]; then nvram commit>/dev/null 2>&1 cat< Die geänderten Einstellungen wurden übernommen. Neustart empfohlen. EOF else cat< Ok, und jetzt noch neustarten... EOF fi #rm /www/index.html #wget -q http://127.0.0.1/cgi-bin-index.html -O /www/index.html fi . ${0%/*}/cgi-bin-post.sh