diff options
author | Guy Martin <gmsoft@gentoo.org> | 2004-02-03 21:00:41 +0000 |
---|---|---|
committer | Guy Martin <gmsoft@gentoo.org> | 2004-02-03 21:00:41 +0000 |
commit | a6044941e723ed3877c4c6d4093bd42bd55881a7 (patch) | |
tree | 575e7eb897b30bbfaa769b83adde29a778eb33c5 /net-wireless/kismet/files | |
parent | Version bump to add/fix rc scripts. Fix #26143. (diff) | |
download | historical-a6044941e723ed3877c4c6d4093bd42bd55881a7.tar.gz historical-a6044941e723ed3877c4c6d4093bd42bd55881a7.tar.bz2 historical-a6044941e723ed3877c4c6d4093bd42bd55881a7.zip |
Version bump to add/fix rc scripts. Fix #26143.
Diffstat (limited to 'net-wireless/kismet/files')
-rw-r--r-- | net-wireless/kismet/files/digest-kismet-3.0.1-r1 | 1 | ||||
-rw-r--r-- | net-wireless/kismet/files/rc-conf-3 | 27 | ||||
-rw-r--r-- | net-wireless/kismet/files/rc-script-3 | 41 |
3 files changed, 69 insertions, 0 deletions
diff --git a/net-wireless/kismet/files/digest-kismet-3.0.1-r1 b/net-wireless/kismet/files/digest-kismet-3.0.1-r1 new file mode 100644 index 000000000000..3fa80764ee92 --- /dev/null +++ b/net-wireless/kismet/files/digest-kismet-3.0.1-r1 @@ -0,0 +1 @@ +MD5 7ba34081eb93d7ca27377593ba40524b kismet-3.0.1.tar.gz 692537 diff --git a/net-wireless/kismet/files/rc-conf-3 b/net-wireless/kismet/files/rc-conf-3 new file mode 100644 index 000000000000..6d06f9747e76 --- /dev/null +++ b/net-wireless/kismet/files/rc-conf-3 @@ -0,0 +1,27 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Peter Johanson <latexer@gentoo.org> + +# Config file for kimset server + +# ATTENTION: most of the kismet configuration is still done in +# /etc/kismet/kismet.conf +# To use the kismet init script, you must have "logtemplate" set to a location +# that is writable by the user assigned by "suiduser". +# e.g. +# suiduser=foo +# logtemplate=/home/foo/kismet_log/%n-%d-%i.%l + + +# Set WIFI_DEV to the device to be used by the kismet server. +# This device must have the ability to do monitor mode + + +WIFI_DEV="" + +# WIFI_DEV="wlan0" +# WIFI_DEV="eth1" + +# Options to pass to the hopper/monitor/server +KISMET_MONITOR_OPTS="" +KISMET_SERVER_OPTS="" diff --git a/net-wireless/kismet/files/rc-script-3 b/net-wireless/kismet/files/rc-script-3 new file mode 100644 index 000000000000..53858bbb1321 --- /dev/null +++ b/net-wireless/kismet/files/rc-script-3 @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Peter Johanson <latexer@gentoo.org> + +# If you use this init script, you only need to run `kismet_client` to connect + +checkconfig() { + if [ ! -e /etc/kismet/kismet.conf ] ; then + eerror "You need an /etc/kimset/kismet.conf to run kimset_server." + return 1 + elif [ -z "${WIFI_DEV}" ]; then + eerror "You must define WIFI_DEV in /etc/conf.d/kismet." + return 1 + fi + +} +checkcard() { + if [ -z "`cat /proc/net/dev | grep ${WIFI_DEV}`" ]; then + eerror "${WIFI_DEV} not found." + return 1 + fi +} + +start() { + checkconfig || return 1 + checkcard || return 1 + ifconfig ${WIFI_DEV} up + ebegin "Starting kismet_server" + start-stop-daemon --start --quiet --pidfile /var/run/kismet_server.pid \ + --background --make-pidfile --exec /usr/bin/kismet_server -- ${KISMET_SERVER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping kismet_server" + start-stop-daemon --stop --quiet --pidfile /var/run/kismet_server.pid + kismet_unmonitor &> /dev/null + eend $? +} + |