From 08d27bf0a20c5dbd9bf24f7d5f51afb3fb295fcd Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 7 Jun 2026 09:06:10 +0300 Subject: [PATCH] install_easy: do not use apk in openwrt if it doesn't have db in /lib/apk/db --- common/installer.sh | 3 ++- docs/changes.txt | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/installer.sh b/common/installer.sh index 7117c92..9aee7d1 100644 --- a/common/installer.sh +++ b/common/installer.sh @@ -212,7 +212,8 @@ check_system() OPENWRT_PACKAGER=opkg OPENWRT_PACKAGER_INSTALL="opkg install" OPENWRT_PACKAGER_UPDATE="opkg update" - exists apk && { + # do not use apk if it does not have database + [ -d /lib/apk/db ] && exists apk && { OPENWRT_PACKAGER=apk OPENWRT_PACKAGER_INSTALL="apk add" OPENWRT_PACKAGER_UPDATE= diff --git a/docs/changes.txt b/docs/changes.txt index 0af459c..5813a70 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -298,3 +298,7 @@ v0.9.4.3 * zapret-lib,zapret-antidpi: delay parameter in "send" desync function * zapret-lib: fix oob urp=b case in rawsend_dissect_segmented * nfqws2, zapret-lib: (LUA_COMPAT_VER=6) fix wrong spelling : WRITEABLE -> WRITABLE + +1.0.1 + +* install_easy: do not use apk in openwrt if it doesn't have db in /lib/apk/db