mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-04-20 09:37:00 -04:00
Change homedir conf load path
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#
|
||||
# If no -c option is given the first found of this list will be loaded:
|
||||
# - ./rtl_433.conf
|
||||
# - ~/.rtl_433.conf
|
||||
# - ~/.rtl_433/rtl_433.conf
|
||||
# - /usr/local/etc/rtl_433.conf
|
||||
# - /etc/rtl_433.conf
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ char **compat_get_default_conf_paths()
|
||||
static char buf[256] = "";
|
||||
if (!paths[0]) {
|
||||
paths[0] = "rtl_433.conf";
|
||||
snprintf(buf, sizeof(buf), "%s%s", getenv("HOME"), "/.rtl_433.conf");
|
||||
snprintf(buf, sizeof(buf), "%s%s", getenv("HOME"), "/.rtl_433/rtl_433.conf");
|
||||
paths[1] = buf;
|
||||
paths[2] = "/usr/local/etc/rtl_433/rtl_433.conf";
|
||||
paths[3] = "/etc/rtl_433/rtl_433.conf";
|
||||
|
||||
Reference in New Issue
Block a user