confd: call avahi-set-host-name on hostname changes

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-06-30 14:13:09 +02:00
committed by Tobias Waldekranz
parent e4a1261ad8
commit ecc24d13cb
+1
View File
@@ -961,6 +961,7 @@ static int change_hostname(sr_session_ctx_t *session, uint32_t sub_id, const cha
/* Inform any running lldpd and avahi of the change ... */
systemf("lldpcli configure system hostname %s", nm);
systemf("avahi-set-host-name %s", nm);
err:
if (nm)
free(nm);