[package] opkg: update to r503 - reduces peak memory usage by further 20%, rebased...
[openwrt.git] / package / opkg / patches / 011-old-config-location.patch
diff --git a/package/opkg/patches/011-old-config-location.patch b/package/opkg/patches/011-old-config-location.patch
new file mode 100644 (file)
index 0000000..40d0b75
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/src/opkg-cl.c
++++ b/src/opkg-cl.c
+@@ -169,7 +169,10 @@
+                       printf("Confusion: getopt_long returned %d\n", c);
+               }
+       }
+-    
++
++      if(!conf->conf_file)
++              conf->conf_file = "/etc/opkg.conf";
++
+       if (parse_err)
+               return parse_err;
+       else