#!/bin/sh export DATE="17.9.2007";SCRIPT=${0#/rom} export TITLE="Admin: NFS" . ${SCRIPT%/*}/cgi-bin-pre.sh cat<Admin: NFS EOF if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then cat<
NFS Server:
 
   
EOF else IFS=\&;set $QUERY_STRING;unset IFS;eval $* DIRTY= if [ -n "$post_nfs" ]; then for V in ff_nfs; do eval "C=\$$V" C=$(unescape $C) 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<The changed settings are committed. The settings are active after the next Restart. EOF else cat<No settings are changed. EOF fi fi . ${SCRIPT%/*}/cgi-bin-post.sh