mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +01:00
t-runner: Start SW entropy generator if no HW avail.
This commit is contained in:
parent
94b2c00534
commit
52611afe6f
@ -445,6 +445,21 @@ static pid_t start_dbus_daemon(void)
|
||||
return pid;
|
||||
}
|
||||
|
||||
static pid_t start_haveged(void)
|
||||
{
|
||||
char *argv[2];
|
||||
pid_t pid;
|
||||
|
||||
argv[0] = "/usr/sbin/haveged";
|
||||
argv[1] = NULL;
|
||||
|
||||
pid = execute_program(argv, true);
|
||||
if (pid < 0)
|
||||
return -1;
|
||||
|
||||
return pid;
|
||||
}
|
||||
|
||||
static bool set_interface_state(const char *if_name, bool isUp)
|
||||
{
|
||||
char *state, *argv[4];
|
||||
@ -1500,6 +1515,9 @@ static void run_command(char *cmdname)
|
||||
if (dbus_pid < 0)
|
||||
goto exit;
|
||||
|
||||
if (check_virtualization())
|
||||
start_haveged();
|
||||
|
||||
test_stat_queue = l_queue_new();
|
||||
|
||||
l_hashmap_foreach(test_config_map, create_network_and_run_tests,
|
||||
|
Loading…
Reference in New Issue
Block a user