Skip to content

Commit

Permalink
cleaned up some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gbo@freecision.com committed May 23, 2017
1 parent fee5437 commit 602a5aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions onion-ubus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ WifiScan () {
}

Omega2WifiScan () {
# json setup
local networkDevice=$1

# json setup
json_init

json_add_array results

iwpriv $1 set SiteSurvey=1
iwpriv $networkDevice set SiteSurvey=1

sleep 1

Expand All @@ -32,7 +34,7 @@ Omega2WifiScan () {
var="nonempty"
while [ "$var" != "" ]
do
var=$(iwpriv $1 get_site_survey | grep '^[0-9]' | sed -n "${line}p")
var=$(iwpriv $networkDevice get_site_survey | grep '^[0-9]' | sed -n "${line}p")
ch=$(echo "${var:0:3}" | xargs)
ssid=$(echo "${var:4:32}" | xargs)
bssid=$(echo "${var:37:19}" | xargs)
Expand Down

0 comments on commit 602a5aa

Please sign in to comment.