summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-06 17:33:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-06 17:33:41 (EDT)
commit0647ef7db57768316dc89e1e67c6fde14b35a738 (patch)
tree12cf1e95b7aa716196e6314f894cc64442b970ea
parent31d47366ae8529c4a99e87f2cc8d9471295444ce (diff)
build: Make /usr/bin/opkg link
-rwxr-xr-xbuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/build b/build
index c215edd..caac7a4 100755
--- a/build
+++ b/build
@@ -26,6 +26,9 @@ build:
install: build
oh-autoinstall
mv dest/usr/bin/opkg-cl dest/usr/bin/opkg-lede
+ @# Hack: prokit's install command uses opkg to run maintainer scripts,
+ @# so make sure /usr/bin/opkg exists even before postinst can run u-a.
+ ln -sf opkg-lede dest/usr/bin/opkg
@# From OpenWrt:
cp ../opkg-key dest/usr/bin/opkg-key-lede
@# opkg-lede's CMake build system doesn't install this...