wshaper: start wshaper on ifup
This commit is contained in:
parent
58245f257f
commit
b64c2dc399
|
@ -44,9 +44,10 @@ define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/wshaper/install
|
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.htb $(1)/usr/sbin/
|
||||||
$(INSTALL_BIN) ./files/wshaper.init $(1)/etc/init.d/wshaper
|
$(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
|
$(INSTALL_DATA) ./files/wshaper.config $(1)/etc/config/wshaper
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ "$ACTION" = ifup ] && /etc/init.d/wshaper enabled && /etc/init.d/wshaper start || exit 0
|
Loading…
Reference in New Issue