Commit 0453d094 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

ifplugd: use <pkg>_INSTALL_INIT_SYSV mechanism

parent e8dc7677
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -29,12 +29,15 @@ define IFPLUGD_INSTALL_FIXUP
		$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \
			$(TARGET_DIR)/etc/ifplugd/ifplugd.action ; \
	fi
endef

IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP

define IFPLUGD_INSTALL_INIT_SYSV
	$(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \
		$(TARGET_DIR)/etc/init.d/S45ifplugd
	# don't use bash for init script
	$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
endef

IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP

$(eval $(autotools-package))