[arch-commits] Commit in ifplugd/trunk (PKGBUILD ifplugd)
Dave Reisner
dreisner at archlinux.org
Mon May 7 09:54:02 UTC 2012
Date: Monday, May 7, 2012 @ 05:54:01
Author: dreisner
Revision: 158688
upgpkg: ifplugd 0.28-11
- use NET_IFS as basis in rc.d script
Modified:
ifplugd/trunk/PKGBUILD
ifplugd/trunk/ifplugd
----------+
PKGBUILD | 4 ++--
ifplugd | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-05-07 08:43:27 UTC (rev 158687)
+++ PKGBUILD 2012-05-07 09:54:01 UTC (rev 158688)
@@ -5,7 +5,7 @@
pkgname=ifplugd
pkgver=0.28
-pkgrel=10
+pkgrel=11
pkgdesc="A daemon which brings up/down network interfaces upon cable insertion/removal."
arch=('i686' 'x86_64')
url="http://0pointer.de/lennart/projects/ifplugd"
@@ -15,7 +15,7 @@
options=('!makeflags')
source=($url/${pkgname}-${pkgver}.tar.gz 'ifplugd' 'ifplugd.action' 'ifplugd-0.28-interface.patch' 'ifdown.01-route.sh' 'ifup.01-route.sh' 'ifup.02-ntpdate.sh')
md5sums=('df6f4bab52f46ffd6eb1f5912d4ccee3'
- 'ef27f40434ca85ccaf57a7e388eb001e'
+ '2281cd3eda9e3403857863e1a1bc00be'
'6f98767c4ea2cf0580f73ced81efd21a'
'54eb22844b5aeed161c0b80aa9008570'
'd6ce6c7bd481a0b3944c944c5b277c0b'
Modified: ifplugd
===================================================================
--- ifplugd 2012-05-07 08:43:27 UTC (rev 158687)
+++ ifplugd 2012-05-07 09:54:01 UTC (rev 158688)
@@ -16,9 +16,11 @@
[[ -r $cfg ]] && . "$cfg"
# discover interfaces to monitor
-# (replacing INTERFACES with net_ifs, since AL
+# (replacing INTERFACES with NET_IFS, since AL
# already uses it in /etc/rc.conf)
-if [[ -z $net_ifs ]]; then
+if [[ $NET_IFS ]]; then
+ net_ifs=($NET_IFS)
+else
net_ifs=(/sys/class/net/!(lo))
net_ifs=("${net_ifs[@]##*/}")
fi
More information about the arch-commits
mailing list