Skript-Schnipsel

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 21:47, 29 July 2005 (edit)
213.139.154.67 (Talk)
(wl scan - typo)
← Previous diff
Revision as of 21:53, 29 July 2005 (edit) (undo)
213.139.154.67 (Talk)
(Erweitertes Script mit Hostnamen)
Next diff →
Line 156: Line 156:
# mkdir -p /tmp/www # mkdir -p /tmp/www
wl assoclist | awk '{print$2}' > /tmp/assocLIST wl assoclist | awk '{print$2}' > /tmp/assocLIST
 + echo "<b>IPs and hostnames of WLAN clients</b> <p>" > /tmp/www/wlan.html
while read assocLINE while read assocLINE
do do
- # echo "<b>IPs and hostnames of WLAN clients</b> <p>" 
dumpleases | grep -i $assocLINE | awk '{print "Hostname: " $1, "MAC: " $2, "IP: " $3}' dumpleases | grep -i $assocLINE | awk '{print "Hostname: " $1, "MAC: " $2, "IP: " $3}'
# echo "<p>"; # echo "<p>";
- done < /tmp/assocLIST # > /tmp/www/wlan.html+ done < /tmp/assocLIST # >> /tmp/www/wlan.html
</pre> </pre>

Revision as of 21:53, 29 July 2005