From e7bc7d76e8844d2c85b78453711314d05e3655aa Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 26 May 2023 15:14:57 +0200 Subject: [PATCH] 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 --- src/confd/src/ietf-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/src/ietf-system.c b/src/confd/src/ietf-system.c index 0ca15d24..12ceba5a 100644 --- a/src/confd/src/ietf-system.c +++ b/src/confd/src/ietf-system.c @@ -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");