summaryrefslogtreecommitdiff
path: root/net/sqm-scripts
diff options
context:
space:
mode:
authorTony Ambardar <itugrok@yahoo.com>2018-01-08 03:50:26 -0800
committerToke Høiland-Jørgensen <toke@toke.dk>2018-03-01 11:57:51 +0100
commit8214106013ec53bd577bdb8d239ac6170461a346 (patch)
tree2255b2c08b35567b0b54706cac95513d54ecebe9 /net/sqm-scripts
parent060595e682678a7778348cae2bf4f2b10fb00f38 (diff)
sqm-scripts: Fix return value bug in postrm script
The script removes the UCI option ucitrack.@sqm[0] if present and then returns success. If that UCI option is already absent however, the script incorrectly returns failure, which blocks upgrade of the luci-app-sqm package. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Diffstat (limited to 'net/sqm-scripts')
-rw-r--r--net/sqm-scripts/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sqm-scripts/Makefile b/net/sqm-scripts/Makefile
index 37730b650..ed7bde6e9 100644
--- a/net/sqm-scripts/Makefile
+++ b/net/sqm-scripts/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=sqm-scripts
PKG_SOURCE_VERSION:=8217081f7e52af342c362b29480461575c496387
PKG_VERSION:=1.1.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=GPLv2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.xz
@@ -81,7 +81,7 @@ uci -q get ucitrack.@sqm[0] > /dev/null && {
uci delete ucitrack.@sqm[0]
uci del_list ucitrack.@firewall[0].affects=sqm
uci commit
-}
+} || exit 0
endef
$(eval $(call BuildPackage,sqm-scripts))