summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2004-10-26 14:40:11 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2004-10-26 14:40:11 +0000
commit7c8e31951d2ff536cb5e5c2df8ed3f3a743eee59 (patch)
tree106140aefb600aee7928cf68c46910eefab5164f /net-wireless/kismet/files
parentVersion bump. (Manifest recommit) (diff)
downloadgentoo-2-7c8e31951d2ff536cb5e5c2df8ed3f3a743eee59.tar.gz
gentoo-2-7c8e31951d2ff536cb5e5c2df8ed3f3a743eee59.tar.bz2
gentoo-2-7c8e31951d2ff536cb5e5c2df8ed3f3a743eee59.zip
Fix for new config file location.
Diffstat (limited to 'net-wireless/kismet/files')
-rw-r--r--net-wireless/kismet/files/kismet-2004.10.1-conf.d27
-rw-r--r--net-wireless/kismet/files/kismet-2004.10.1-init.d41
2 files changed, 68 insertions, 0 deletions
diff --git a/net-wireless/kismet/files/kismet-2004.10.1-conf.d b/net-wireless/kismet/files/kismet-2004.10.1-conf.d
new file mode 100644
index 000000000000..b99ca93b524e
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-2004.10.1-conf.d
@@ -0,0 +1,27 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/files/kismet-2004.10.1-conf.d,v 1.1 2004/10/26 14:40:11 brix Exp $
+
+# Config file for kismet server
+
+# ATTENTION: most of the kismet configuration is still done in
+# /etc/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=%h/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/kismet-2004.10.1-init.d b/net-wireless/kismet/files/kismet-2004.10.1-init.d
new file mode 100644
index 000000000000..1705083a25fc
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-2004.10.1-init.d
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/files/kismet-2004.10.1-init.d,v 1.1 2004/10/26 14:40:11 brix Exp $
+
+# If you use this init script, you only need to run `kismet_client` to connect
+
+checkconfig() {
+ if [ ! -e /etc/kismet.conf ] ; then
+ eerror "You need an /etc/kismet.conf to run kismet_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 $?
+}
+