summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changelog2
-rw-r--r--opkg-lede.pkg/postinst7
2 files changed, 9 insertions, 0 deletions
diff --git a/changelog b/changelog
index e548b72..ea65731 100644
--- a/changelog
+++ b/changelog
@@ -5,6 +5,8 @@ opkg-lede (0+git20190131.d4ba162-6) trunk
* opkg-lede: Drop "Replaces" field and simplify "Conflicts" field.
* Drop patch to change default configuration file path, and just use
"/etc/opkg.conf".
+ * opkg-lede: Move main configuration file from "/etc/opkg/opkg.conf" to
+ "/etc/opkg.conf" in postinst.
-- Patrick McDermott <patrick.mcdermott@libiquity.com> Wed, 17 Apr 2019 19:01:24 -0400
diff --git a/opkg-lede.pkg/postinst b/opkg-lede.pkg/postinst
new file mode 100644
index 0000000..6e2d526
--- /dev/null
+++ b/opkg-lede.pkg/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ x"${1}" = x'configure' ]; then
+ if [ -f /etc/opkg/opkg.conf ] && ! [ -f /etc/opkg.conf ]; then
+ mv /etc/opkg/opkg.conf /etc/opkg.conf
+ fi
+fi