From e30cba792afeed6a1b42fb62393781332b8a1544 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 04 Apr 2019 17:36:14 -0400 Subject: build, opkg-lede: Manage opkg-key and u-a with u-a How meta. --- (limited to 'opkg-lede.pkg/postinst') diff --git a/opkg-lede.pkg/postinst b/opkg-lede.pkg/postinst index 187a8cc..f1ee124 100644 --- a/opkg-lede.pkg/postinst +++ b/opkg-lede.pkg/postinst @@ -1,5 +1,8 @@ #!/bin/sh if [ x"${1}" = x'configure' ]; then - update-alternatives --install /usr/bin/opkg opkg /usr/bin/opkg-lede 30 + for f in opkg opkg-key update-alternatives; do + update-alternatives --install "/usr/bin/${f}" "${f}" \ + "/usr/bin/${f}-lede" 30 + done fi -- cgit v0.9.1