|
@@ -51,7 +51,7 @@ define Package/luci-app-adguardhome/postinst
|
|
|
#!/bin/sh
|
|
|
/etc/init.d/AdGuardHome enable >/dev/null 2>&1
|
|
|
enable=$(uci get AdGuardHome.AdGuardHome.enabled 2>/dev/null)
|
|
|
- if [ "$enable"x == "1"x ]; then
|
|
|
+ if [ "$enable" == "1" ]; then
|
|
|
/etc/init.d/AdGuardHome reload
|
|
|
fi
|
|
|
rm -f /tmp/luci-indexcache
|
|
@@ -64,6 +64,10 @@ define Package/luci-app-adguardhome/prerm
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
/etc/init.d/AdGuardHome disable
|
|
|
/etc/init.d/AdGuardHome stop
|
|
|
+uci -q batch <<-EOF >/dev/null 2>&1
|
|
|
+ delete ucitrack.@AdGuardHome[-1]
|
|
|
+ commit ucitrack
|
|
|
+EOF
|
|
|
fi
|
|
|
exit 0
|
|
|
endef
|