ports/opt (master): udev-netif-hotplug-handler: unmaintained
![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit 597d22fd754a89f3add1b8905a3bac0b48acc5e1 Author: Juergen Daubert <jue@jue.li> Date: Tue Apr 10 19:46:22 2007 +0200 udev-netif-hotplug-handler: unmaintained diff --git a/udev-netif-hotplug-handler/.footprint b/udev-netif-hotplug-handler/.footprint deleted file mode 100644 index b3e096a..0000000 --- a/udev-netif-hotplug-handler/.footprint +++ /dev/null @@ -1,7 +0,0 @@ -drwxr-xr-x root/root etc/ -drwxr-xr-x root/root etc/udev/ -drwxr-xr-x root/root etc/udev/rules.d/ --rw-r--r-- root/root etc/udev/rules.d/26-crux-netif.rules -drwxr-xr-x root/root lib/ -drwxr-xr-x root/root lib/udev/ --rwxr-xr-x root/root lib/udev/netif_handler diff --git a/udev-netif-hotplug-handler/.md5sum b/udev-netif-hotplug-handler/.md5sum deleted file mode 100644 index ef689f0..0000000 --- a/udev-netif-hotplug-handler/.md5sum +++ /dev/null @@ -1,2 +0,0 @@ -7bf9a4d9a27373c7402735fbd3ff1f1f 26-crux-netif.rules -7e3eef4cd843bf9c4b53b0e2d83abedc netif_handler diff --git a/udev-netif-hotplug-handler/26-crux-netif.rules b/udev-netif-hotplug-handler/26-crux-netif.rules deleted file mode 100644 index 4bd5d2b..0000000 --- a/udev-netif-hotplug-handler/26-crux-netif.rules +++ /dev/null @@ -1,3 +0,0 @@ -# Network hotplugging -ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="*", RUN+="/lib/udev/netif_handler" -ACTION=="remove", SUBSYSTEM=="net", ENV{INTERFACE}=="*", RUN+="/lib/udev/netif_handler" diff --git a/udev-netif-hotplug-handler/Pkgfile b/udev-netif-hotplug-handler/Pkgfile deleted file mode 100644 index dcbdaaf..0000000 --- a/udev-netif-hotplug-handler/Pkgfile +++ /dev/null @@ -1,15 +0,0 @@ -# Maintainer: Johannes Winkelmann, jw at smts dot ch -# Description: udev network interface hotplug handler -# URL: http://crux.nu/ -# Depends on: udev - -name=udev-netif-hotplug-handler -version=1.2 -release=1 -source=(netif_handler 26-crux-netif.rules) - -build() { - install -m 755 -D netif_handler $PKG/lib/udev/netif_handler - install -m 644 -D 26-crux-netif.rules \ - $PKG/etc/udev/rules.d/26-crux-netif.rules -} diff --git a/udev-netif-hotplug-handler/README b/udev-netif-hotplug-handler/README deleted file mode 100644 index df892d3..0000000 --- a/udev-netif-hotplug-handler/README +++ /dev/null @@ -1,6 +0,0 @@ -This port implements a hotplug handler for network devices, allowing to react -on hotplug events i.e. to assign an IP. - -Once active, a handler script will call - /etc/rc.d/net.<ifname> [start|stop] -where 'ifname' is the name of the interface, i.e. eth0, ath0, usb0 etc. diff --git a/udev-netif-hotplug-handler/netif_handler b/udev-netif-hotplug-handler/netif_handler deleted file mode 100644 index 483878b..0000000 --- a/udev-netif-hotplug-handler/netif_handler +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# udev network interface starter -# adapted from -# http://linuxfromscratch.org/pipermail/cross-lfs/2006-January/001042.html -# -# Johannes Winkelmann, jw at smts dot ch - -version=1.2 -DEBUG=no - -log() { - logger $* -} -debug() { - if [ x"$DEBUG" = "xyes" ]; then - log $* - fi -} - - -# validate $INTERFACE -case "$INTERFACE" in - "") - debug_log "$call: empty device; exiting" - exit 1 - ;; - ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*) - debug_log "assuming $INTERFACE is already up" - exit 0 - ;; -esac - -# valid interface, try calling the appropriate handler -call=`basename $0` -if [ ! -f /etc/rc.d/net.$INTERFACE ]; then - debug_log "$call: not found: /etc/rc.d/net.$INTERFACE" - exit 0 -fi - -if [ "$ACTION" = "add" ]; then - command=start -else - command=stop -fi - -/etc/rc.d/net.$INTERFACE $command -log "$call $INTERFACE $command"
participants (1)
-
crux@crux.nu