#!/bin/sh . /www/cgi-bin/functions.sh wps_mac=$($nvram get macAddr) wps_client_name=$($nvram get client_name) wps_status=$($nvram get wps_client) wds_endis_fun=$($nvram get wds_endis_fun) wds_repeater_basic=$($nvram get wds_repeater_basic) endis_wl_radio=$($nvram get endis_wl_radio) print_cgi_header print_http_header "/funcs.js" print_body_header "_wps" "" "" print_table_header "" cat < var wds_endis_fun ="$wds_endis_fun"; var wds_repeater_basic="$wds_repeater_basic"; var endis_wl_radio="$endis_wl_radio"; var wps_status="$wps_status"; var client_name="$wps_client_name" function loadvalue() { if ( wds_endis_fun == "1" && wds_repeater_basic == "0" && endis_wl_radio == "1" ) top.contents.location.href="menu.html"; else top.contents.location.href="menu.html"; }
EOF