summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-12-09 09:03:20 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-12-09 09:03:20 (EST)
commit94dec7ed7a605e531a5779901adf427996ae19ff (patch)
tree3308803754c35715a1a20d96298bf12ce1ff708b
parent0a25431733707467bfda955e7b5688c1f0e6bc0c (diff)
opkg: Prefix cat command with busybox path
-rw-r--r--changelog7
-rwxr-xr-xopkg4
2 files changed, 9 insertions, 2 deletions
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 <patrick.mcdermott@libiquity.com> 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