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'
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'
--- /dev/null
+# 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"
--- /dev/null
+#!/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 $?
+}