[Buildroot] [PATCH 1/1 v2] rpcbind : add startup script

Sagaert Johan sagaert.johan at skynet.be
Sun Jun 15 13:32:37 UTC 2014


rpcbind must be started at boot time.
Without this any nfs mount will fail.

Signed-off-by: Sagaert Johan <sagaert.johan at skynet.be>
---
v2: reworked using INSTALL_INIT_SYSV hook

 package/rpcbind/rpcbind.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/rpcbind/rpcbind.mk b/package/rpcbind/rpcbind.mk
index 19bdace..a313030 100644
--- a/package/rpcbind/rpcbind.mk
+++ b/package/rpcbind/rpcbind.mk
@@ -15,4 +15,10 @@ RPCBIND_CONF_ENV += \
 	CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/"
 RPCBIND_DEPENDENCIES += libtirpc
 
+define RPCBIND_INSTALL_INIT_SYSV
+	[ -f $(TARGET_DIR)/etc/init.d/S30rpcbind ] || \
+		$(INSTALL) -m 0755 -D package/rpcbind/S30rpcbind \
+			$(TARGET_DIR)/etc/init.d/S30rpcbind
+endef
+
 $(eval $(autotools-package))
-- 
2.0.0



More information about the buildroot mailing list