mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 06:13:02 +02:00
board/common: allow lldpd to run by default in NETCONF mode
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user