mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 20:43:02 +02:00
Fix #215: impossible to enable NTP client
Regression introduced in ac0b0d5.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -393,7 +393,7 @@ static int change_ntp(sr_session_ctx_t *session, uint32_t sub_id, const char *mo
|
||||
(void)remove(CHRONY_PREV);
|
||||
(void)rename(CHRONY_CONF, CHRONY_PREV);
|
||||
(void)rename(CHRONY_NEXT, CHRONY_CONF);
|
||||
if (srx_enabled(session, XPATH_BASE_"/ntp/enabled")) {
|
||||
if (!srx_enabled(session, XPATH_BASE_"/ntp/enabled")) {
|
||||
systemf("initctl -nbq disable chronyd");
|
||||
return SR_ERR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user