From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Hadjinlian Date: Mon, 13 Jul 2015 19:30:51 +0200 Subject: [Buildroot] [PATCH 12/38] iucode-tool: systemd support In-Reply-To: <847e8022549a877d66b377c8a7e8d18f4cef5ea1.1432332802.git.alex.suykov@gmail.com> References: <847e8022549a877d66b377c8a7e8d18f4cef5ea1.1432332802.git.alex.suykov@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Alex, all On Sat, May 23, 2015 at 12:04 PM, Alex Suykov wrote: > Signed-off-by: Alex Suykov > --- > package/iucode-tool/iucode-tool.mk | 8 ++++++++ > package/iucode-tool/iucode.service | 9 +++++++++ > 2 files changed, 17 insertions(+) > create mode 100644 package/iucode-tool/iucode.service > > diff --git a/package/iucode-tool/iucode-tool.mk b/package/iucode-tool/iucode-tool.mk > index 44d49d9..ba6641a 100644 > --- a/package/iucode-tool/iucode-tool.mk > +++ b/package/iucode-tool/iucode-tool.mk > @@ -19,4 +19,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)) > diff --git a/package/iucode-tool/iucode.service b/package/iucode-tool/iucode.service > new file mode 100644 > index 0000000..e5caef8 > --- /dev/null > +++ b/package/iucode-tool/iucode.service > @@ -0,0 +1,9 @@ > +[Unit] > +Description=Upload microcode into the processor > + > +[Service] > +Type=oneshot > +ExecStart=/usr/sbin/iucode_tool -k /usr/share/misc/intel-microcode.dat Since it's a oneshot service, you should add: RemainAfterExit=yes We will mark your patch as Changes Requested in patchwork. > + > +[Install] > +WantedBy=multi-user.target > -- > 2.0.3 > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot