packages: clean up the package folder
[openwrt.git] / package / system / opkg / patches / 011-old-config-location.patch
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 (file)
index 0000000..0555926
--- /dev/null
@@ -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