From 7266416702d6d83cd1a2bc3a7b3e579d711c83df Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Fri, 20 Nov 2009 03:02:25 +0000 Subject: [PATCH] Respect the --with-opkglibdir configure switch in update-alternatives. From John L. Chmielewski . git-svn-id: http://opkg.googlecode.com/svn/trunk@342 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- configure.ac | 1 + utils/{update-alternatives => update-alternatives.in} | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) rename utils/{update-alternatives => update-alternatives.in} (98%) mode change 100755 => 100644 diff --git a/configure.ac b/configure.ac index c238e1b..f97a1c6 100644 --- a/configure.ac +++ b/configure.ac @@ -260,5 +260,6 @@ AC_OUTPUT( src/Makefile libbb/Makefile utils/Makefile + utils/update-alternatives libopkg.pc ) diff --git a/utils/update-alternatives b/utils/update-alternatives.in old mode 100755 new mode 100644 similarity index 98% rename from utils/update-alternatives rename to utils/update-alternatives.in index 4983e19..a49cc09 --- a/utils/update-alternatives +++ b/utils/update-alternatives.in @@ -21,7 +21,7 @@ set -e # admin dir -ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives" +ad="$OPKG_OFFLINE_ROOT@opkglibdir@/opkg/alternatives" usage() { echo "update-alternatives: $* -- 2.25.1