From e7c9479ae4856a3b8b6b6e62a22489a039f26c4f Mon Sep 17 00:00:00 2001
From: Travis Kemen <thepeople@openwrt.org>
Date: Fri, 15 Aug 2008 04:13:21 +0000
Subject: [PATCH] fix symlinks when installing opkg into a image

SVN-Revision: 12316
---
 package/opkg/files/postinst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/opkg/files/postinst b/package/opkg/files/postinst
index 6aa8731ee9..c2bb38187d 100644
--- a/package/opkg/files/postinst
+++ b/package/opkg/files/postinst
@@ -1,3 +1,3 @@
 #!/bin/sh
-ln -sf "${IPKG_INSTROOT}/usr/lib/ipkg" "${IPKG_INSTROOT}/usr/lib/opkg"
-ln -sf "${IPKG_INSTROOT}/etc/ipkg.conf" "${IPKG_INSTROOT}/etc/opkg.conf"
+ln -sf "/usr/lib/ipkg" "${IPKG_INSTROOT}/usr/lib/opkg"
+ln -sf "/etc/ipkg.conf" "${IPKG_INSTROOT}/etc/opkg.conf"
-- 
GitLab