From 94dec7ed7a605e531a5779901adf427996ae19ff Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 09 Dec 2020 09:03:20 -0500 Subject: opkg: Prefix cat command with busybox path --- diff --git a/changelog b/changelog index a2dc6ef..15b6ec5 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,10 @@ +opkg-lede (0+git20190131.d4ba162-8) trunk + + * opkg-lede: Fix a "cat: not found" error when "/usr/bin/opkg" is run + during a system installation. + + -- Patrick McDermott Wed, 09 Dec 2020 09:00:08 -0500 + opkg-lede (0+git20190131.d4ba162-7) trunk * opkg-lede: Add a wrapper script as "/usr/bin/opkg" and move the real diff --git a/opkg b/opkg index 33ec19f..c9f7052 100755 --- a/opkg +++ b/opkg @@ -74,7 +74,8 @@ main() fi set -- "${@}" \ --add-arch all:100 \ - --add-arch "$(cat /etc/proteanos_arch):50" \ + --add-arch "$("${BB}" cat \ + /etc/proteanos_arch):50" \ --add-arch src:100 first_arg=false elif [ -n "${arch_arg}" ]; then @@ -120,7 +121,6 @@ main() fi save_bb - if /usr/bin/opkg-cl "${@}"; then unsave_bb return 0 -- cgit v0.9.1