[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
This commit is contained in:
jow 2011-07-17 23:37:36 +00:00
parent 1f5224268a
commit 3ebdeb0c38
2 changed files with 7 additions and 0 deletions

View File

@ -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/

View File

@ -0,0 +1,5 @@
#!/bin/sh
if [ "$ACTION" = ifup ]; then
killall -HUP radvd 2>/dev/null
fi