summaryrefslogtreecommitdiff
path: root/www/start-kismet
blob: 00fae01059330462d8970e8b4e441335d83b15c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
#
# Start Kismet, coping with the bad way it interacts with newer gpsd versions.
# Originally by Andreas Schneider <mail@cynapses.org>.  

# netcat runs 48 seconds
# gpsd should detect the baud rate in 40 sec
echo -e "p\nb\nb\nb\nb" | netcat -i 8 localhost 2947 >/dev/null 2>&1 &
sleep 40

kismet $*