#!/bin/sh . /www/cgi-bin/functions.sh 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 < wps_charcount = parent.wps_charcount; wps_status="$wps_status"; var wds_endis_fun ="$wds_endis_fun"; var wds_repeater_basic="$wds_repeater_basic"; var endis_wl_radio="$endis_wl_radio"; var T_minutes = "2"; if ( parent.wps_choice == 1 ) T_minutes="4"; else T_minutes="2"; 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