@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := sqm-scripts
PKG_NAME := sqm-scripts
PKG_SOURCE_VERSION := ab763cba8b1516b3afa99760e0ca884f8b8d93b8
PKG_SOURCE_VERSION := ab763cba8b1516b3afa99760e0ca884f8b8d93b8
PKG_VERSION := 1.4.0
PKG_VERSION := 1.4.0
PKG_RELEASE := 4
PKG_RELEASE := 5
PKG_SOURCE_PROTO := git
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/tohojo/sqm-scripts
PKG_SOURCE_URL := https://github.com/tohojo/sqm-scripts
@ -57,18 +57,9 @@ define Package/luci-app-sqm/description
e n d e f
e n d e f
d e f i n e P a c k a g e / l u c i - a p p - s q m / i n s t a l l
d e f i n e P a c k a g e / l u c i - a p p - s q m / i n s t a l l
make -C $( PKG_BUILD_DIR) DESTDIR = $( 1) PLATFORM = openwrt install-luci
e n d e f
d e f i n e P a c k a g e / l u c i - a p p - s q m / p o s t i n s t
#!/bin/sh
w h i c h u c i > / d e v / n u l l | | e x i t 0
u c i - q g e t u c i t r a c k . @ s q m [ 0 ] > / d e v / n u l l | | {
uci add ucitrack sqm > /dev/null
uci set ucitrack.@sqm[ 0] .init= sqm
uci add_list ucitrack.@firewall[ 0] .affects= sqm
uci commit
}
$( MAKE) -C $( PKG_BUILD_DIR) DESTDIR = $( 1) PLATFORM = openwrt install-luci
$( INSTALL_DIR) $( 1) /etc/uci-defaults
$( INSTALL_BIN) ./files/luci-app-sqm.defaults $( 1) /etc/uci-defaults
e n d e f
e n d e f
d e f i n e P a c k a g e / l u c i - a p p - s q m / p o s t r m
d e f i n e P a c k a g e / l u c i - a p p - s q m / p o s t r m