#!/bin/sh . /www/cgi-bin/functions.sh lock_cgiwait WEBUPGRADE_STATUS_FILE="/tmp/webupgrade_status" [ -f $WEBUPGRADE_STATUS_FILE ] && rm -f [ -f $WEBUPGRADE_STATUS_FILE ] rm -f /tmp/file* killall webupgrade_get_confile.sh 2> /dev/null echo "imginstall:0001" > /tmp/webupgrade_status wds_endis_fun=$($nvram get wds_endis_fun) wds_repeater_basic=$($nvram get wds_repeater_basic) endis_wl_radio=$($nvram get endis_wl_radio) auto_check_for_upgrade=$($nvram get auto_check_for_upgrade) module_name=$(cat /module_name) firmware_region=$(cat /firmware_region) firmware_version=$(cat /firmware_version) JWNB2100_FLAG=`[ -f /vendor_model_name ] && cat /vendor_model_name || echo ""` print_cgi_header print_http_header "/funcs.js" "/upgrade.js" print_body_header "_upgrade" "upgrade.html" "auto_upgrade_check" print_table_header "" cat < function loadvalue() { var cf=document.forms[0]; if('$auto_check_for_upgrade' == '0') cf.check_upon.checked = false; else cf.check_upon.checked = true; menu_change(); } var netgear_module="$module_name"; var netgear_region="$firmware_region"; var netgear_ver="$firmware_version" var wds_endis_fun='$wds_endis_fun'; var wds_repeater_basic='$wds_repeater_basic'; var endis_wl_radio='$endis_wl_radio'; var vender_model_name='$JWNB2100_FLAG'; function menu_change() { if ( '$wds_endis_fun' == '1' && '$wds_repeater_basic' == '0' && '$endis_wl_radio' == '1' ) { if(top.contents.location.pathname != "/cgi-bin/menu_wds.html") top.contents.location.href="menu_wds.html"; } else { if(top.contents.location.pathname != "/cgi-bin/menu.html") top.contents.location.href="menu.html"; } }
EOF print_http_footer