radvd: use <pkg>_INSTALL_INIT_SYSV
This commit changes the radvd to use the <pkg>_INSTALL_INIT_SYSV mechanism instead of using a post install target hook. We also use a full destination path when calling $(INSTALL). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
0e32501981
commit
1f21c9fdac
@ -12,10 +12,8 @@ RADVD_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
|||||||
# We're patching configure.ac/Makefile.am.
|
# We're patching configure.ac/Makefile.am.
|
||||||
RADVD_AUTORECONF = YES
|
RADVD_AUTORECONF = YES
|
||||||
|
|
||||||
define RADVD_INSTALL_INITSCRIPT
|
define RADVD_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d
|
$(INSTALL) -D -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d/S50radvd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
RADVD_POST_INSTALL_TARGET_HOOKS += RADVD_INSTALL_INITSCRIPT
|
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
Reference in New Issue
Block a user