board/common: allow lldpd to run by default in NETCONF mode

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-03-16 15:55:13 +01:00
parent 24d2f28fb6
commit 0da4578362
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ rm -rf /etc/network/interfaces*
#...except for some core services
reserved()
{
for svc in clixon getty nginx sysklogd; do
for svc in clixon getty lldpd nginx sysklogd; do
[ "$1" = "${svc}.conf" ] && return 0
done
@@ -1,3 +1,3 @@
service if:<!boot/profinet> [2345789] log:prio:daemon.info,tag:lldpd \
env:-/etc/default/lldpd \
<!> env:-/etc/default/lldpd \
lldpd -d $LLDPD_ARGS -- LLDP daemon (IEEE 802.1ab)
+6 -1
View File
@@ -24,6 +24,11 @@ static bool is_true(cxobj *xp, char *name)
return false;
}
static int sys_reload_services(void)
{
return system("initctl -nbq touch sysklogd lldpd");
}
int ietf_sys_tr_begin(clicon_handle h, transaction_data td)
{
return aug_load(aug);
@@ -59,7 +64,7 @@ int ietf_sys_tr_commit_hostname(cxobj *src, cxobj *tgt)
free(old);
if (src)
err = err ? : system("initctl -nbq touch sysklogd");
err = err ? : sys_reload_services();
return err;
}