tazpanel diff lib/libtazpanel @ rev 136

network.cgi: pscan is too slow, needs its own page
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 16 14:40:49 2011 +0200 (2011-04-16)
parents 2dd85684201e
children 6aa939753084
line diff
     1.1 --- a/lib/libtazpanel	Sat Apr 16 14:05:38 2011 +0200
     1.2 +++ b/lib/libtazpanel	Sat Apr 16 14:40:49 2011 +0200
     1.3 @@ -61,8 +61,10 @@
     1.4  		ip=`ifconfig | grep -A 1 $i | grep inet | \
     1.5  			awk '{ print $2 }' | cut -d ":" -f 2`
     1.6  		echo "<td>connected</td><td>$ip</td>"
     1.7 +		echo "<td><a href='/network.cgi?scan=$ip'>"
     1.8 +		echo "<img src="$IMAGES/recharge.png" />Scan ports</a></td>"
     1.9  	else
    1.10 -		echo "<td>----</td><td>----</td>"
    1.11 +		echo "<td>----</td><td>----</td><td></td>"
    1.12  	fi
    1.13  }
    1.14  
    1.15 @@ -75,6 +77,7 @@
    1.16  	<td>`gettext "Name"`</td>
    1.17  	<td>`gettext "Status"`</td>
    1.18  	<td>`gettext "IP Address"`</td>
    1.19 +	<td></td>
    1.20  </tr>
    1.21  EOT
    1.22  	for i in `ls /sys/class/net`