[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:
parent
1f5224268a
commit
3ebdeb0c38
@ -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/
|
||||
|
5
ipv6/radvd/files/radvd.hotplug
Normal file
5
ipv6/radvd/files/radvd.hotplug
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$ACTION" = ifup ]; then
|
||||
killall -HUP radvd 2>/dev/null
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user