Skip to content

Commit

Permalink
fix: normalize the address before adding it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonseymour committed Dec 30, 2010
1 parent ac4867a commit b8570ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/geoloc.sh
Expand Up @@ -240,8 +240,10 @@ map()
local map=$1
local addr=$2
local dir=$(map_dir $map)
test -d "$dir" && test -n "$addr" || die "usage: map add map addr"
test -e $dir/mac_addresses/$addr || ln -sf ../../../mac_addresses/$addr $dir/mac_addresses/$addr

local mac=$(shrink_mac $addr)
test -d "$dir" && test -n "$mac" || die "usage: map add map mac"
test -e $dir/mac_addresses/$mac || ln -sf ../../../mac_addresses/$mac $dir/mac_addresses/$mac
}

import-kismet()
Expand Down

0 comments on commit b8570ab

Please sign in to comment.