src/confd: always run initctl in batch mode

Also, quiet output from cond get.  We're only using the exit code.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-05-28 23:31:18 +02:00
committed by Tobias Waldekranz
parent 838a83e5b3
commit e7bc7d76e8
+1 -1
View File
@@ -513,7 +513,7 @@ static int change_dns(sr_session_ctx_t *session, uint32_t sub_id, const char *mo
rename(RESOLV_NEXT, RESOLV_CONF);
/* in bootstrap, another resolvconf will soon take your call */
if (systemf("initctl cond get hook/sys/up"))
if (systemf("initctl -bq cond get hook/sys/up"))
return 0;
systemf("resolvconf -u");