#!/bin/sh . /www/cgi-bin/functions.sh lock_cgiwait sta_list=$(cat /tmp/check_link) link_status=$(cat /tmp/link_status) echo 2 > /tmp/ca_ipchange wlan_get_ssid="$($nvram get wl_ssid | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g')" mac=$(cat /tmp/wifi0_mac) sta_wl_ssid="$(nvram get sta_wl_ssid | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's//>/g')" sta_wl_sectype=$($nvram get sta_wl_sectype) dns_hijack=$($nvram get dns_hijack) wps_status=$($nvram get wps_status) dns_hijack=$($nvram get dns_hijack) ap_transmit=$($nvram get wl_same_sec) lan_dhcp=$($nvram get lan_dhcp) try_connect=$($nvram get try_connect) #try again if [ try_connect -eq 1 ];then ca_wep_length = $($nvram get sta_wl_key_length) else ca_wep_length = $($nvram get key_length) fi sta_wl_key1=$($nvram get sta_wl_key1 | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's/\//\\\//g') sta_wl_key2=$($nvram get sta_wl_key2 | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's/\//\\\//g') sta_wl_key3=$($nvram get sta_wl_key3 | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's/\//\\\//g') sta_wl_key4=$($nvram get sta_wl_key4 | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g' -e 's/\//\\\//g') wl_sectype=$($nvram get wl_sectype) wds_endis_fun=$($nvram get wds_endis_fun) print_cgi_header print_http_header "/funcs.js" "/wlan.js" "/welcome_wl.js" $nvram set time_stamp_all="$time_stamp_dni" echo "  Passphrase:    

EOF $nvram set try_connect="1" print_http_footer