summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-19 22:02:25 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-19 22:02:25 (EST)
commit7266416702d6d83cd1a2bc3a7b3e579d711c83df (patch)
tree42d69705418e6b9d88be3ddb1547d2b443a6797d
parenta6d79aecf9bb27c27e3f9fbef544e190592f24b7 (diff)
Respect the --with-opkglibdir configure switch in update-alternatives.
From John L. Chmielewski <jlcster@gmail.com>. git-svn-id: http://opkg.googlecode.com/svn/trunk@342 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--configure.ac1
-rw-r--r--[-rwxr-xr-x]utils/update-alternatives.in (renamed from utils/update-alternatives)2
2 files changed, 2 insertions, 1 deletions
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
index 4983e19..a49cc09 100755..100644
--- 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: $*