diff options
Diffstat (limited to 'net-wireless/kismet/files')
-rw-r--r-- | net-wireless/kismet/files/kismet.confd-r1 | 14 | ||||
-rw-r--r-- | net-wireless/kismet/files/kismet.initd-r1 | 26 |
2 files changed, 40 insertions, 0 deletions
diff --git a/net-wireless/kismet/files/kismet.confd-r1 b/net-wireless/kismet/files/kismet.confd-r1 new file mode 100644 index 000000000000..42f617372ff5 --- /dev/null +++ b/net-wireless/kismet/files/kismet.confd-r1 @@ -0,0 +1,14 @@ +# /etc/conf.d/kismet - configuration file for /etc/init.d/kismet + +# Kismet configuration is done in /etc/kismet*.conf +# It is recommended to put user config in /etc/kismet_site.conf +# where kismet updates won't try to overwrite it. + +# 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 + +# Options to pass to kismet, see `kismet --help` +KISMET_SERVER_OPTIONS="--no-ncurses" diff --git a/net-wireless/kismet/files/kismet.initd-r1 b/net-wireless/kismet/files/kismet.initd-r1 new file mode 100644 index 000000000000..4c1891611967 --- /dev/null +++ b/net-wireless/kismet/files/kismet.initd-r1 @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +checkconfig() { + if [ ! -e /etc/kismet.conf ]; then + eerror "Configuration file /etc/kismet.conf not found" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting kismet server" + start-stop-daemon --start --quiet --pidfile /run/kismet.pid \ + --background --make-pidfile --exec /usr/bin/kismet \ + -- ${KISMET_SERVER_OPTIONS} + eend ${?} +} + +stop() { + ebegin "Stopping kismet server" + start-stop-daemon --stop --quiet --pidfile /run/kismet.pid + eend ${?} +} |