From 193e073db3fc39e7b0116cf424b921e49da825e9 Mon Sep 17 00:00:00 2001 From: frank Date: Sun, 29 Jan 2012 10:24:22 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +net-misc/iperf-2.0.5 --- .etckeeper | 2 ++ conf.d/iperf | 6 ++++++ init.d/iperf | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 conf.d/iperf create mode 100755 init.d/iperf diff --git a/.etckeeper b/.etckeeper index f819297..52d2672 100755 --- a/.etckeeper +++ b/.etckeeper @@ -126,6 +126,7 @@ maybe chmod 0644 './conf.d/gpm' maybe chmod 0644 './conf.d/hostname' maybe chmod 0644 './conf.d/hwclock' maybe chmod 0644 './conf.d/ip6tables' +maybe chmod 0644 './conf.d/iperf' maybe chmod 0644 './conf.d/iptables' maybe chmod 0644 './conf.d/keymaps' maybe chmod 0644 './conf.d/killprocs' @@ -546,6 +547,7 @@ maybe chmod 0755 './init.d/gpm' maybe chmod 0755 './init.d/hostname' maybe chmod 0755 './init.d/hwclock' maybe chmod 0755 './init.d/ip6tables' +maybe chmod 0755 './init.d/iperf' maybe chmod 0755 './init.d/iptables' maybe chmod 0755 './init.d/keymaps' maybe chmod 0755 './init.d/killprocs' diff --git a/conf.d/iperf b/conf.d/iperf new file mode 100644 index 0000000..adf2389 --- /dev/null +++ b/conf.d/iperf @@ -0,0 +1,6 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/iperf/files/iperf.confd,v 1.1 2005/01/23 10:52:13 ka0ttic Exp $ + +# extra options (run iperf -h for a list of supported options) +IPERF_OPTS="--format Mbytes" diff --git a/init.d/iperf b/init.d/iperf new file mode 100755 index 0000000..968257c --- /dev/null +++ b/init.d/iperf @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/iperf/files/iperf.initd,v 1.2 2005/01/23 10:52:13 ka0ttic Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting iperf server" + start-stop-daemon --start --quiet \ + --exec /usr/bin/iperf -- -s -D ${IPERF_OPTS} &>/dev/null + eend $? +} + +stop() { + ebegin "Shutting down iperf server" + start-stop-daemon --stop --quiet --exec /usr/bin/iperf + eend $? +} -- 2.39.5