summaryrefslogtreecommitdiff
path: root/package/system/opkg/patches/011-old-config-location.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/opkg/patches/011-old-config-location.patch')
-rw-r--r--package/system/opkg/patches/011-old-config-location.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/system/opkg/patches/011-old-config-location.patch b/package/system/opkg/patches/011-old-config-location.patch
new file mode 100644
index 0000000..0555926
--- /dev/null
+++ b/package/system/opkg/patches/011-old-config-location.patch
@@ -0,0 +1,12 @@
+--- a/src/opkg-cl.c
++++ b/src/opkg-cl.c
+@@ -207,6 +207,9 @@ args_parse(int argc, char *argv[])
+ }
+ }
+
++ if(!conf->conf_file && !conf->offline_root)
++ conf->conf_file = xstrdup("/etc/opkg.conf");
++
+ if (parse_err)
+ return parse_err;
+ else