summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich2017-02-10 08:58:20 +0000
committerJo-Philipp Wich2017-02-10 08:58:27 +0000
commit9f844972a38896fc97db293c3305c11c4229e2de (patch)
tree9cfa7d44dc237d69ec3c6d7ade862a96c46eb5d0
parent673d7213175c2cf209b25c8eb2632941cdbb8519 (diff)
downloadopkg-lede-9f844972a38896fc97db293c3305c11c4229e2de.tar.gz
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 <jo@mein.io>
-rw-r--r--src/opkg-cl.c3
1 files changed, 3 insertions, 0 deletions
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