tazpanel diff network.cgi @ rev 319
Tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Jun 23 19:28:26 2012 +0100 (2012-06-23) |
parents | 3e9acc16f728 |
children | 186f45ca4d04 |
line diff
1.1 --- a/network.cgi Thu May 17 14:02:41 2012 +0300 1.2 +++ b/network.cgi Sat Jun 23 19:28:26 2012 +0100 1.3 @@ -147,6 +147,7 @@ 1.4 <p>$(gettext "Here you can configure a wired connection using DHCP to \ 1.5 automatically get a random IP or configure a static/fixed IP")</p> 1.6 1.7 +<section> 1.8 <h3>$(gettext 'Configuration')</h3> 1.9 <form method="get" action="$SCRIPT_NAME"> 1.10 <input type="hidden" name="eth" /> 1.11 @@ -184,7 +185,9 @@ 1.12 <input type="submit" name="dhcp" value="$(gettext 'Activate (DHCP)')"> 1.13 <input type="submit" name="disable" value="$(gettext 'Disable')"> 1.14 </form> 1.15 +</section> 1.16 1.17 +<section> 1.18 <h3>$(gettext 'Configuration file')</h3> 1.19 1.20 <p>$(gettext "These values are the ethernet settings in the main \ 1.21 @@ -194,6 +197,7 @@ 1.22 </pre> 1.23 <a class="button" href="index.cgi?file=/etc/network.conf&action=edit"> 1.24 <img src="$IMAGES/edit.png" />$(gettext 'Manual Edit')</a> 1.25 +</section> 1.26 EOT 1.27 ;; 1.28 *\ wifi\ *) 1.29 @@ -237,6 +241,7 @@ 1.30 WIFI_KEY_TYPE="$(GET keytype)" 1.31 fi 1.32 cat << EOT 1.33 +<section> 1.34 <h3>$(gettext 'Connection')</h3> 1.35 <form method="get" action="$SCRIPT_NAME"> 1.36 <input type="hidden" name="connect-wifi" /> 1.37 @@ -262,7 +267,9 @@ 1.38 $(table_end) 1.39 <input type="submit" name="wifi" value="$(gettext 'Configure')" /> 1.40 </form> 1.41 +</section> 1.42 1.43 +<section> 1.44 <h3>$(gettext 'Configuration file')</h3> 1.45 1.46 <p>$(gettext "These values are the wifi settings in the main /etc/network.conf \ 1.47 @@ -272,10 +279,13 @@ 1.48 1.49 <a class="button" href="index.cgi?file=/etc/network.conf&action=edit"> 1.50 <img src="$IMAGES/edit.png" />$(gettext 'Manual Edit')</a> 1.51 +</section> 1.52 1.53 +<section> 1.54 <h3>$(gettext 'Output of iwconfig')</h3> 1.55 1.56 <pre>$(iwconfig)</pre> 1.57 +</section> 1.58 EOT 1.59 ;; 1.60 *) 1.61 @@ -287,6 +297,7 @@ 1.62 1.63 <p>$(gettext 'Manage network connections and services')</p> 1.64 1.65 +<section> 1.66 <div id="actions"> 1.67 <div class="float-left"> 1.68 <a class="button" href="$SCRIPT_NAME?start"> 1.69 @@ -305,44 +316,58 @@ 1.70 </div> 1.71 1.72 $(list_network_interfaces) 1.73 +</section> 1.74 1.75 +<section> 1.76 <h3 id="hosts">$(gettext 'Hosts')</h3> 1.77 1.78 <pre>$(cat /etc/hosts)</pre> 1.79 1.80 <a class="button" href="index.cgi?file=/etc/hosts&action=edit"> 1.81 <img src="$IMAGES/edit.png" />$(gettext 'Edit hosts')</a> 1.82 +</section> 1.83 1.84 +<section> 1.85 <h3>$(gettext 'Hostname')</h3> 1.86 1.87 <form method="get" name="$SCRIPT_NAME"> 1.88 <input type="text" name="hostname" value="$hostname" /> 1.89 <input type="submit" value="$(gettext 'Change hostname')" /> 1.90 </form> 1.91 +</section> 1.92 1.93 - 1.94 +<section> 1.95 <h3 id="ifconfig">$(gettext 'Output of ifconfig')</h3> 1.96 1.97 <pre>$(ifconfig)</pre> 1.98 +</section> 1.99 1.100 +<section> 1.101 <h3 id="routing">$(gettext 'Routing table')</h3> 1.102 1.103 <pre>$(route -n)</pre> 1.104 +</section> 1.105 1.106 +<section> 1.107 <h3 id="dns">$(gettext 'Domain name resolution')</h3> 1.108 1.109 <pre>$(cat /etc/resolv.conf)</pre> 1.110 +</section> 1.111 1.112 +<section> 1.113 <h3 id="arp">$(gettext 'ARP table')</h3> 1.114 1.115 <pre>$(arp)</pre> 1.116 +</section> 1.117 1.118 +<section> 1.119 <h3 id="connections">$(gettext 'IP Connections')</h3> 1.120 1.121 <pre> 1.122 $(netstat -anp 2> /dev/null | sed -e '/UNIX domain sockets/,$d' \ 1.123 -e 's#\([0-9]*\)/#<a href="boot.cgi?daemons=pid=\1">\1</a>/#') 1.124 </pre> 1.125 +</section> 1.126 EOT 1.127 ;; 1.128 esac