From 599549a10770c5ea63a7b9a2329df76cff2aae19 Mon Sep 17 00:00:00 2001 From: Michal Hrusecky <michal.hrusecky@nic.cz> Date: Wed, 2 Jan 2019 16:46:04 +0100 Subject: [PATCH] opkg: Do not delete the wrapper in the patch --- .../branding/0008-opkg-add-opkg_wrapper.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/patches/openwrt/branding/0008-opkg-add-opkg_wrapper.patch b/patches/openwrt/branding/0008-opkg-add-opkg_wrapper.patch index 8c89f8026..b210393dc 100644 --- a/patches/openwrt/branding/0008-opkg-add-opkg_wrapper.patch +++ b/patches/openwrt/branding/0008-opkg-add-opkg_wrapper.patch @@ -25,6 +25,18 @@ index 4f89d9ec6c..63302a06ed 100644 ifneq ($(CONFIG_SIGNED_PACKAGES),) echo "option check_signature" >> $(1)/etc/opkg.conf endif +diff --git a/package/system/opkg/files/opkg_wrapper.sh b/package/system/opkg/files/opkg_wrapper.sh +new file mode 100755 +index 0000000..654b23d +--- /dev/null ++++ b/package/system/opkg/files/opkg_wrapper.sh +@@ -0,0 +1,6 @@ ++#!/bin/sh ++if which opkg-pkgupdate-wrapper.sh >/dev/null 2>&1; then ++ exec opkg-pkgupdate-wrapper.sh "$@" ++else ++ exec /bin/opkg-cl "$@" ++fi -- 2.20.1 -- GitLab