confd: reload netbrowse on hostname changes

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-04-15 15:36:41 +02:00
parent c1836af7cc
commit bff0417be8
+1
View File
@@ -1201,6 +1201,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);
system("initctl -nbq touch netbrowse");
err:
if (nm)
free(nm);