package/skeleton-init-finit: smcrouted default changes

- allow custom options sourced from optional /etc/default/smcrouted
 - don't enable smcrouted by default when enabled in Buildroot .config
   because normal use-cases require an /etc/smcroute.conf

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-07-04 09:35:47 +02:00
committed by Richard Alpe
parent f8666ddeb2
commit 45466bcbc7
2 changed files with 2 additions and 2 deletions
@@ -208,7 +208,6 @@ endif # BR2_PACKAGE_QUAGGA
ifeq ($(BR2_PACKAGE_SMCROUTE),y)
define SKELETON_INIT_FINIT_SET_SMCROUTE
cp $(SKELETON_INIT_FINIT_AVAILABLE)/smcroute.conf $(FINIT_D)/available/
ln -sf ../available/smcroute.conf $(FINIT_D)/enabled/smcroute.conf
endef
SKELETON_INIT_FINIT_POST_INSTALL_TARGET_HOOKS += SKELETON_INIT_FINIT_SET_SMCROUTE
endif
@@ -1 +1,2 @@
service [2345] smcrouted -ns -- Static multicast routing daemon
service [2345789] env:-/etc/default/smcrouted \
smcrouted -ns $SMCROUTE_OPTS $SMCROUTE_ARGS -- Static multicast routing daemon