From: Imre Kaloz Date: Mon, 24 Mar 2014 11:16:05 +0000 (+0000) Subject: add hotplug script to restart coova when wan comes up X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4c725cb87a776a40c6f6092ecedc3a25ae09f689;p=openwrt%2Fsvn-archive%2Fpackages.git add hotplug script to restart coova when wan comes up Signed-off-by: Imre Kaloz SVN-Revision: 40015 --- diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index 364bb3888..fc9c8fa2d 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coova-chilli PKG_VERSION:=1.3.0 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://ap.coova.org/chilli @@ -79,6 +79,8 @@ define Package/coova-chilli/install $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/chilli.conf $(1)/etc/ $(INSTALL_DIR) $(1)/etc/chilli $(CP) $(PKG_INSTALL_DIR)/etc/chilli/* $(1)/etc/chilli/ + $(INSTALL_DIR) $(1)/etc/hotplug.d/iface + $(INSTALL_DATA) ./files/chilli.hotplug $(1)/etc/hotplug.d/iface/30-chilli $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chilli* $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/usr/lib/ diff --git a/net/coova-chilli/files/chilli.hotplug b/net/coova-chilli/files/chilli.hotplug new file mode 100644 index 000000000..e12812b49 --- /dev/null +++ b/net/coova-chilli/files/chilli.hotplug @@ -0,0 +1,7 @@ +#!/bin/sh + +[ "$ACTION" == "ifup" ] || exit 0 + +[ "$INTERFACE" = "wan" ] && { + /etc/init.d/chilli restart +}