#!/bin/sh . /www/cgi-bin/functions.sh wps_client=$($nvram get wps_client) print_cgi_header print_http_header cat < wps_client="$wps_client" if (wps_client == "1") location.href="wps_success.html"; else location.href="wps_failure.html"; EOF $nvram set wps_client=0 $nvram commit