Page 1 of 1

Kismet startup script

Posted: Fri Jul 04, 2003 1:34 am
by Droogz
This is the script i use to start wardriving. It starts gpsd and then su's to the user i run kismet as. I would like to add some checking for gpsd and start it only if it needs to.

Code: Select all

#run-kismet #!/bin/sh tempdir="/home/USER/kismet" ethdev="eth0" usbdev="/dev/ttyUSB0" user="USER" group="GROUP" TERM=xterm export TERM /usr/local/bin/gpsd -p ${usbdev} # Set the ip to nothing /sbin/ifconfig ${ethdev} 0.0.0.0 # Start kismet hopper /usr/local/bin/kismet_monitor -H # Make temp directories for kismet if [ ! -d ${tempdir} ]; then mkdir ${tempdir} 2> /dev/null chown ${user}:${group} ${tempdir} echo "Created Dir: ${tempdir}" fi # chdir to the temp dir before you start kismet cd ${tempdir} /bin/su ${user} -c /usr/local/bin/kismet