diff options
| author | Jo-Philipp Wich <jow@openwrt.org> | 2015-03-12 15:45:35 +0100 |
|---|---|---|
| committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-03-12 15:45:35 +0100 |
| commit | f55314de0ed1d91c8143946e101515c70587565b (patch) | |
| tree | 4bb2d7d2457838dd863cee2237d195e830636602 | |
| parent | cd214e97fc37e7b7d8731eaa69d592e2d6de7f64 (diff) | |
| parent | b64c2dc39999c94914df03a0075686f85c5568c8 (diff) | |
Merge pull request #1030 from giner/patch-2
wshaper: start wshaper on ifup
| -rw-r--r-- | net/wshaper/Makefile | 3 | ||||
| -rw-r--r-- | net/wshaper/files/wshaper.iface | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/net/wshaper/Makefile b/net/wshaper/Makefile index 5007a8735..65b4045be 100644 --- a/net/wshaper/Makefile +++ b/net/wshaper/Makefile @@ -44,9 +44,10 @@ define Build/Compile endef define Package/wshaper/install - $(INSTALL_DIR) $(1)/usr/sbin/ $(1)/etc/init.d $(1)/etc/config + $(INSTALL_DIR) $(1)/usr/sbin/ $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface $(INSTALL_BIN) ./files/wshaper.htb $(1)/usr/sbin/ $(INSTALL_BIN) ./files/wshaper.init $(1)/etc/init.d/wshaper + $(INSTALL_BIN) ./files/wshaper.iface $(1)/etc/hotplug.d/iface/10-wshaper $(INSTALL_DATA) ./files/wshaper.config $(1)/etc/config/wshaper endef diff --git a/net/wshaper/files/wshaper.iface b/net/wshaper/files/wshaper.iface new file mode 100644 index 000000000..2964005df --- /dev/null +++ b/net/wshaper/files/wshaper.iface @@ -0,0 +1,3 @@ +#!/bin/sh + +[ "$ACTION" = ifup ] && /etc/init.d/wshaper enabled && /etc/init.d/wshaper start || exit 0 |
