From 3ebdeb0c38907bb51bc8df8d84b3f1559054b426 Mon Sep 17 00:00:00 2001 From: jow Date: Sun, 17 Jul 2011 23:37:36 +0000 Subject: [PATCH] [packages] radvd: hook into hotplug to reload configuration when interfaces are brought up, otherwise radvd might stop sending advertisements in particular on bridges git-svn-id: svn://svn.openwrt.org/openwrt/packages@27678 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ipv6/radvd/Makefile | 2 ++ ipv6/radvd/files/radvd.hotplug | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 ipv6/radvd/files/radvd.hotplug diff --git a/ipv6/radvd/Makefile b/ipv6/radvd/Makefile index e40a1102b..16d377c81 100644 --- a/ipv6/radvd/Makefile +++ b/ipv6/radvd/Makefile @@ -46,6 +46,8 @@ define Package/radvd/install $(INSTALL_CONF) ./files/radvd.config $(1)/etc/config/radvd $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd + $(INSTALL_DIR) $(1)/etc/hotplug.d/iface + $(INSTALL_DATA) ./files/radvd.hotplug $(1)/etc/hotplug.d/iface/05-radvd $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/ diff --git a/ipv6/radvd/files/radvd.hotplug b/ipv6/radvd/files/radvd.hotplug new file mode 100644 index 000000000..10a7ca8f6 --- /dev/null +++ b/ipv6/radvd/files/radvd.hotplug @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$ACTION" = ifup ]; then + killall -HUP radvd 2>/dev/null +fi -- 2.11.0