endif
define NFS_UTILS_INSTALL_FIXUP
- $(INSTALL) -m 0755 package/nfs-utils/S60nfs \
- $(TARGET_DIR)/etc/init.d/S60nfs
rm -f $(NFS_UTILS_TARGETS_)
endef
+NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
+
+define NFS_UTILS_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 0755 package/nfs-utils/S60nfs \
+ $(TARGET_DIR)/etc/init.d/S60nfs
+endef
+
define NFS_UTILS_REMOVE_NFSIOSTAT
rm -f $(TARGET_DIR)/usr/sbin/nfsiostat
endef
-NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
-
# nfsiostat is interpreted python, so remove it unless it's in the target
NFS_UTILS_POST_INSTALL_TARGET_HOOKS += $(if $(BR2_PACKAGE_PYTHON),,NFS_UTILS_REMOVE_NFSIOSTAT)