package/iucode-tool: Add systemd service config

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: David De Grave (Essensium/Mind) <david.degrave@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018.08.x
Alex Suykov 2018-05-15 12:18:02 +02:00 committed by Thomas Petazzoni
parent 811ddf60f4
commit 81fe62e095
2 changed files with 18 additions and 0 deletions

View File

@ -18,4 +18,12 @@ define IUCODE_TOOL_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S00iucode-tool
endef
define IUCODE_TOOL_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/iucode-tool/iucode.service \
$(TARGET_DIR)/usr/lib/systemd/system/iucode.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -sf ../../../../usr/lib/systemd/system/iucode.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/iucode.service
endef
$(eval $(autotools-package))

View File

@ -0,0 +1,10 @@
[Unit]
Description=Upload microcode into the processor
[Service]
Type=oneshot
ExecStart=/usr/sbin/iucode_tool -k /usr/share/misc/intel-microcode.dat
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target