mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
confd: call avahi-set-host-name on hostname changes
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
committed by
Tobias Waldekranz
parent
e4a1261ad8
commit
ecc24d13cb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user