mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-01 21:33:02 +02:00
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:
committed by
Tobias Waldekranz
parent
838a83e5b3
commit
e7bc7d76e8
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user