s=m:section(NamedSection,"internet","rule",translate("Configuration"),translate("Check Internet connectivity via HTTP header download"))
hosts=s:option(DynamicList,"hosts",translate("List of host addresses"),translate("List of host addresses (url or IP) to track and request http headers from"))
hosts.datatype="string"
interval=s:option(Value,"interval",translate("Test-run interval"),translate("Time interval in seconds to re-start a new test run"))
interval.datatype="uinteger"
interval.default="30"
offline_treshold=s:option(Value,"offline_threshold",translate("Switch_to_offline threshold"),translate("Failure counter after how many failed download attempts, the state is considered as offline"))
offline_treshold.datatype="uinteger"
offline_treshold.default="1"
add_hostname_to_ssid=s:option(Flag,"add_hostname_to_ssid",translate("Append hostname to ssid"),translate("Append the router's hostname to the SSID when connectivity check fails"))
add_hostname_to_ssid.rmempty=false
if(a.installed("curl")==true)then
use_curl=s:option(Flag,"use_curl",translate("Use curl"),translate("Use curl instead of wget for testing the connectivity."))
use_curl.rmempty=false
curl_interface=s:option(Value,"curl_interface",translate("Used interface"),translate("Which interface should curl use. (Use ifconfig to find out)"))
use_curl=s:option(Flag,"use_curl",translate("Use curl instead of wget"),translate("Curl is currently not installed. Please install the package in the")