From: Jo-Philipp Wich Date: Fri, 10 Feb 2017 08:58:20 +0000 (+0100) Subject: cli: default to /etc/opkg.conf X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=commitdiff_plain;h=9f844972a38896fc97db293c3305c11c4229e2de cli: default to /etc/opkg.conf If neither --conf-file nor --offline-root are specified, default to the traditional /etc/opkg.conf location to retain compatibility with OpenWrt/LEDE. Signed-off-by: Jo-Philipp Wich --- diff --git a/src/opkg-cl.c b/src/opkg-cl.c index c4e4492..687bb9e 100644 --- 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