eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 9d1f7ad6f520c6f3a7778e3dc448d70fa7e152e1
parent 7347bd40980e9a859bcb3b1b0781485b2e62b250
Author: Marcel Holtmann <marcel@holtmann.org>
Date:   Sun,  8 Sep 2019 18:12:51 +0200

test-runner: Provide CONFIGURATION_DIRECTORY and STATE_DIRECTORY

Diffstat:
Mtools/test-runner.c | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/tools/test-runner.c b/tools/test-runner.c @@ -1398,7 +1398,7 @@ done: static pid_t start_iwd(const char *config_dir, struct l_queue *wiphy_list, const char *ext_options, int num_phys) { - char *argv[13]; + char *argv[13], **envp; char *iwd_phys = NULL; pid_t ret; int idx = 0; @@ -1415,8 +1415,6 @@ static pid_t start_iwd(const char *config_dir, struct l_queue *wiphy_list, } argv[idx++] = BIN_IWD; - argv[idx++] = "-c"; - argv[idx++] = (char *) config_dir; if (check_verbosity(BIN_IWD) || shell) argv[idx++] = "-d"; @@ -1459,9 +1457,17 @@ static pid_t start_iwd(const char *config_dir, struct l_queue *wiphy_list, argv[idx++] = (char *)ext_options; argv[idx] = NULL; - ret = execute_program(argv, environ, false, + envp = l_strv_copy(environ); + envp = l_strv_append_printf(envp, "CONFIGURATION_DIRECTORY=%s", + config_dir); + envp = l_strv_append_printf(envp, "STATE_DIRECTORY=%s", + DAEMON_STORAGEDIR); + + ret = execute_program(argv, envp, false, check_verbosity(BIN_IWD), shell); + l_strv_free(envp); + if (iwd_phys) l_free(iwd_phys);