summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-04-22 17:30:41 +0000
committerRoy Marples <uberlord@gentoo.org>2007-04-22 17:30:41 +0000
commitef2e6ac0e4c1c79d8b5199ea793f2113df6a01f1 (patch)
treeb93b476e728628ba43eb954aa5ef68fb3b6b609d /sys-apps/ifplugd/files
parentnewins -> newconfd, #174266. (diff)
downloadgentoo-2-ef2e6ac0e4c1c79d8b5199ea793f2113df6a01f1.tar.gz
gentoo-2-ef2e6ac0e4c1c79d8b5199ea793f2113df6a01f1.tar.bz2
gentoo-2-ef2e6ac0e4c1c79d8b5199ea793f2113df6a01f1.zip
Punt old versions
(Portage version: 2.1.2.4)
Diffstat (limited to 'sys-apps/ifplugd/files')
-rw-r--r--sys-apps/ifplugd/files/digest-ifplugd-0.28-r53
-rw-r--r--sys-apps/ifplugd/files/digest-ifplugd-0.28-r63
-rw-r--r--sys-apps/ifplugd/files/ifplugd.conf64
-rw-r--r--sys-apps/ifplugd/files/ifplugd.init164
4 files changed, 0 insertions, 234 deletions
diff --git a/sys-apps/ifplugd/files/digest-ifplugd-0.28-r5 b/sys-apps/ifplugd/files/digest-ifplugd-0.28-r5
deleted file mode 100644
index d58875572dca..000000000000
--- a/sys-apps/ifplugd/files/digest-ifplugd-0.28-r5
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 df6f4bab52f46ffd6eb1f5912d4ccee3 ifplugd-0.28.tar.gz 142677
-RMD160 09914a1914a4432822bb660d6aef194debe688f1 ifplugd-0.28.tar.gz 142677
-SHA256 474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 ifplugd-0.28.tar.gz 142677
diff --git a/sys-apps/ifplugd/files/digest-ifplugd-0.28-r6 b/sys-apps/ifplugd/files/digest-ifplugd-0.28-r6
deleted file mode 100644
index d58875572dca..000000000000
--- a/sys-apps/ifplugd/files/digest-ifplugd-0.28-r6
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 df6f4bab52f46ffd6eb1f5912d4ccee3 ifplugd-0.28.tar.gz 142677
-RMD160 09914a1914a4432822bb660d6aef194debe688f1 ifplugd-0.28.tar.gz 142677
-SHA256 474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 ifplugd-0.28.tar.gz 142677
diff --git a/sys-apps/ifplugd/files/ifplugd.conf b/sys-apps/ifplugd/files/ifplugd.conf
deleted file mode 100644
index f408e1bde044..000000000000
--- a/sys-apps/ifplugd/files/ifplugd.conf
+++ /dev/null
@@ -1,64 +0,0 @@
-# -*-sh-*-
-# $Id: ifplugd.conf,v 1.1 2005/09/01 15:33:28 uberlord Exp $
-
-# This file is part of ifplugd.
-#
-# ifplugd is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation; either version 2 of the License, or (at your
-# option) any later version.
-#
-# ifplugd is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with ifplugd; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-
-# ifplugd configuration file
-
-# Please note that this is a bourne shell fragment sourced by the
-# init script of ifplugd.
-
-# Specify the interfaces to control here, separated by spaces.
-# Ifplugd processes will be started for each of these interfaces when
-# the ifplugd init script is called with the "start" argument.
-# If INTERFACES is not set then ifplugd processes ALL interfaces that are
-# available according to /proc/net/dev
-# Note that the list of interfaces appearing in /proc/net/dev may depend on
-# which kernel modules you have loaded.
-INTERFACES=""
-
-# If INTERFACES is not set above, then when WIRELESS_INTERFACES="no" then
-# all interfaces found in /proc/net/wireless are excluded from ifplugd
-WIRELESS_INTERFACES="no"
-
-# Additional parameters for ifplugd.
-# See manual page ifplugd.8 for details.
-# I recommend a delay of 0, both ways, since then, you can swap ethernet
-# cables on different networks and get a new ip address.
-# None of the programs I tested had a problem with the interface being
-# gone in the mean time.
-AUTO="no"
-BEEP="yes"
-IGNORE_FAIL="yes"
-IGNORE_FAIL_POSITIVE="no"
-IGNORE_RETVAL="yes"
-POLL_TIME="1"
-DELAY_UP="0"
-DELAY_DOWN="0"
-API_MODE="auto"
-SHUTDOWN="no"
-WAIT_ON_FORK="no"
-MONITOR="no"
-ARGS=""
-
-# Additional parameters for ifplugd for the specified interface. Note that
-# the global variable is ignored, when a variable like this is set for an
-# interface
-# MONITOR_wlan0="yes"
-# DELAY_UP_wlan0="5"
-# DELAY_DOWN_wlan0="5"
-
diff --git a/sys-apps/ifplugd/files/ifplugd.init b/sys-apps/ifplugd/files/ifplugd.init
deleted file mode 100644
index 40082b104884..000000000000
--- a/sys-apps/ifplugd/files/ifplugd.init
+++ /dev/null
@@ -1,164 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifplugd/files/ifplugd.init,v 1.4 2006/04/06 12:23:08 uberlord Exp $
-
-#NB: Config is in /etc/conf.d/ifplugd
-
-depend() {
- use pcmcia
-}
-
-opts="stop start status"
-
-get_start_interfaces() {
- if [[ -n ${INTERFACES} ]]; then
- echo "${INTERFACES}"
- return
- fi
-
- INTERFACES=" $(sed -n -e 's/^[ \t]*\(.*\):.*/\1/p' /proc/net/dev | xargs) "
- local exclude iface
- if [[ -f /proc/net/wireless && ${WIRELESS_INTERFACES} == "no" ]]; then
- exclude="$(sed -n -e 's/^[ \t]*\(.*\):.*/\1/p' /proc/net/wireless \
- | xargs)"
- fi
-
- # Exclude ifplugd started by other scripts - like net.xxx
- if [[ -d "${svcdir}/daemons" ]]; then
- exclude="${exclude} $(
- grep "\"/var/run/ifplugd.*.pid\"" "${svcdir}"/daemons/* 2>/dev/null \
- | grep -v "${svcdir}/daemons/ifplugd:" \
- | sed -n -e 's/.*ifplugd\.\(.*\)\.pid.*/\1/p'
- )"
- fi
-
- exclude=" lo ${exclude} "
- for iface in ${exclude}; do
- INTERFACES="${INTERFACES// ${iface} / }"
- done
- echo "${INTERFACES}"
-}
-
-get_running_interfaces() {
- local exclude="" INTERFACES="$(
- cd /var/run
- ls ifplugd.*.pid 2>/dev/null | sed -n -e 's/^ifplugd.\(.*\).pid$/\1/p' | xargs
- )"
- if [[ -d "${svcdir}/daemons" ]]; then
- local exclude=$(
- grep "\"/var/run/ifplugd.*.pid\"" "${svcdir}"/daemons/* 2>/dev/null \
- | grep -v "${svcdir}/daemons/ifplugd:" \
- | sed -n -e 's/.*ifplugd\.\(.*\)\.pid.*/\1/p'
- )
- fi
-
- INTERFACES=" ${INTERFACES} "
- for iface in ${exclude}; do
- INTERFACES=${INTERFACES// ${iface} / }
- done
- echo "${INTERFACES}"
-}
-
-# Check if an option is set for a given interface.
-# $1 is interface, $2 is option name, $3 is preset
-is_set() {
- [[ $(get_opt "$@") == "yes" ]]
-}
-
-# Expand an option value for a given interface.
-# $1 is interface, $2 is option name, $3 is preset
-get_opt() {
- local iface="$1" option="$2" preset="$3"
- eval preset=\"\${${option}:=${preset}}\"
- eval echo \"\${${option}_${iface}:=${preset}}\"
-}
-
-# Handle starting for all interfaces
-start() {
- local iface oneworked=false
-
- einfo "Starting ifplugd: "
- eindent
-
- for iface in $(get_start_interfaces); do
- ebegin "${iface}"
- local args="" pidfile="/var/run/ifplugd.${iface}.pid"
-
- if [[ -e ${pidfile} ]] ; then
- local running=false
- if [[ $(type -t is_daemon_running) == "function" ]] ; then
- is_daemon_running /usr/sbin/ifplugd "${pidfile}" && running=true
- else
- local pid="$(< "${pidfile}")"
- [[ " $(pidof /sbin/ifplugd) " == *" ${pid} "* ]] && running=true
- fi
- if ${running} ; then
- eindent
- einfo "ifplugd is already running on ${iface}"
- eend 0
- eoutdent
- oneworked=true
- continue
- fi
- fi
-
- is_set "${iface}" AUTO yes || args="${args}a"
- is_set "${iface}" BEEP yes || args="${args}b"
- is_set "${iface}" IGNORE_FAIL yes && args="${args}f"
- is_set "${iface}" IGNORE_FAIL_POSITIVE yes || args="${args}F"
- is_set "${iface}" IGNORE_RETVAL yes && args="${args}I"
- is_set "${iface}" SHUTDOWN yes || args="${args}q"
- is_set "${iface}" WAIT_ON_FORK yes && args="${args}w"
- is_set "${iface}" MONITOR yes || args="${args}M"
-
- [[ -n ${args} ]] && args="-${args}"
-
- args="${args} -t$(get_opt "${iface}" POLL_TIME 1)"
- args="${args} -u$(get_opt "${iface}" DELAY_UP 0)"
- args="${args} -d$(get_opt "${iface}" DELAY_DOWN 5)"
- args="${args} -m$(get_opt "${iface}" API_MODE auto)"
- args="${args} $(get_opt "${iface}" ARGS '')"
-
- start-stop-daemon --start --exec /usr/sbin/ifplugd \
- --pidfile "/var/run/ifplugd.${iface}.pid" \
- -- --iface="${iface}" ${args}
- local r="$?"
- if is_set "${iface}" WAIT_ON_FORK yes ; then
- [[ ${r} -le 2 ]]
- else
- [[ ${r} == "0" ]]
- fi
- eend $? && oneworked=true
- done
-
- ${oneworked}
-}
-
-stop() {
- local iface allstopped=true
-
- einfo "Stopping ifplugd: "
- eindent
-
- for iface in $(get_running_interfaces); do
- ebegin "${iface}"
- start-stop-daemon --stop --exec /usr/sbin/ifplugd \
- --pidfile "/var/run/ifplugd.${iface}.pid"
- eend $? || allstopped=false
- done
-
- ${allstopped}
-}
-
-status() {
- local iface
-
- service_started "${myservice}" || return 0
-
- for iface in $(get_running_interfaces); do
- einfo "$(/usr/sbin/ifplugstatus ${iface})"
- done
-}
-
-# vim:ts=4