#!/bin/ash
#
#
#
 for i in $(ls /sys/class/net | grep -v lo); do
   ifconfig $i up
 done
 if [ x$DISPLAY = x ]; then
   echo 'Scanning.Please wait.'
   else
   sms 'Scanning.Please wait.'
 fi
 iwlist scanning  >/var/log/scan.log
 if [ x$DISPLAY = x ]; then
   mcview /var/log/scan.log 2>&1
   else
   leafpad /var/log/scan.log 2>&1
 fi