Thursday, November 19, 2009

Kismet init

Here's a script to add to /etc/init.d that will start kismet_drone on router startup. Put this code in a file called "kismet_drone" (or whatever you want to call it):

#!/bin/sh /etc/rc.common
# Copyright (C) 2008 OpenWrt.org

START=65
PROG=/usr/bin/kismet_drone
start() {
        $PROG
}

stop() {
        killall kismet_drone
}

 Once this is done do the following:

cd /etc/rc.d
ln -s ../init.d/kismet_drone S65kismet_drone

Now kismet_drone will start whenever the router is restarted. The "stop" command doesn't work very well, I'm still working on fixing that issue.

No comments: