#!/bin/sh . /www/cgi-bin/functions.sh . /www/cgi-bin/language.sh module=$(cat /module_name) print_cgi_header print_http_header cat < EOF conn="WAN connection type: " internet_type=$($nvram get internet_type) if [ $internet_type -eq 1 ]; then ether_get_wan_assign=$($nvram get wan_ether_wan_assign) if [ "$ether_get_wan_assign" = "0" ]; then conn="$conn""DHCP" else conn="$conn""Static IP" fi else internet_ppp_type=$($nvram get internet_ppp_type) if [ "$internet_ppp_type" = "0" ]; then conn="$conn""PPPoE" elif [ "$internet_ppp_type" = "1" ]; then conn="$conn""PPTP" else conn="$conn""BPA" fi fi echo "
$conn" echo "
Product model name: $module" cat < EOF print_http_footer