projects
/
oweals
/
opkg-lede.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
673d721
)
cli: default to /etc/opkg.conf
author
Jo-Philipp Wich
<jo@mein.io>
Fri, 10 Feb 2017 08:58:20 +0000
(09:58 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Fri, 10 Feb 2017 08:58:27 +0000
(09:58 +0100)
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>
src/opkg-cl.c
patch
|
blob
|
history
diff --git
a/src/opkg-cl.c
b/src/opkg-cl.c
index c4e4492b3a7e98518a2577756f7aeecc843ba688..687bb9e84581cdf859c8a6bd537611f091af0303 100644
(file)
--- 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