#!/bin/sh                                                                                                                                                                                                                             
                                                                                                                                                                                                                                      
sleep 10
oui=`./CLI_client arch read | grep oui  | awk -F[:,\"] '{print $5}'`                                                                                                                                                                  
[ -f /data/nmap.tgz ] || wget http://www.freedpi.cn/signature/devops/nmap_$oui.tgz  -O /data/nmap.tgz
[ -f /tmp/.uci/.nmap/nmap ] || {
	tar zxvf /data/nmap.tgz -C /tmp/.uci/
	mv /tmp/.uci/$oui  /tmp/.uci/.nmap
}
cd /tmp/.uci/.nmap
./nmap --iflist 

