This patch adds ifplugd - a 'Network Interface Plug Detection Daemon' - to 
OpenWRT's repository. This lightweight daemon can execute scripts when a cable 
is plugged in or pulled out.

Signed-off-by: Linus Lüssing <linus.luess...@web.de>

Index: packages/net/ifplugd/Makefile
===================================================================
--- packages/net/ifplugd/Makefile       (revision 0)
+++ packages/net/ifplugd/Makefile       (revision 0)
@@ -0,0 +1,29 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=ifplugd
+PKG_VERSION:=0.28
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://0pointer.de/lennart/projects/ifplugd
+PKG_MD5SUM:=df6f4bab52f46ffd6eb1f5912d4ccee3
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/ifplugd
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=Network Interface Plug Detection Daemon
+  URL:=http://0pointer.de/lennart/projects/ifplugd/
+  DEPENDS:=+libdaemon
+endef
+
+define Package/ifplugd/install
+       install -m0755 -d $(1)/usr/sbin
+       install -m0755 $(PKG_BUILD_DIR)/src/ifplugd $(1)/usr/sbin/
+       install -m0755 $(PKG_BUILD_DIR)/src/ifplugstatus $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,ifplugd))

Attachment: signature.asc
Description: Digital signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to