Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalwareutils.git;a=commitdiff;h=9f980d92e987e419893f563d2ac71b2b07681c4c

commit 9f980d92e987e419893f563d2ac71b2b07681c4c
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Thu Dec 30 14:46:25 2010 +0100

netconfig: install systemd unit file

diff --git a/Makefile b/Makefile
index a39eaca..97114f4 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,8 @@ install:
$(INSTALL) -d $(DESTDIR)$(libexecdir)
$(INSTALL) -d $(DESTDIR)$(sysconfdir)/sysconfig/network
$(INSTALL) -d $(DESTDIR)$(sysconfdir)/systemd/system/sysinit.target.wants
+       $(INSTALL) -d $(DESTDIR)$(libdir)/systemd/system
+       $(INSTALL) -m644 netconfig/netconfig.service 
$(DESTDIR)$(libdir)/systemd/system/netconfig.service
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(INSTALL) -d $(DESTDIR)$(mandir)/man3
$(INSTALL) -d $(DESTDIR)$(includedir)
diff --git a/netconfig/netconfig.service b/netconfig/netconfig.service
new file mode 100644
index 0000000..d57e5d2
--- /dev/null
+++ b/netconfig/netconfig.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Network configurator
+After=syslog.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/sbin/netconfig start
+ExecStop=/sbin/netconfig stop
+
+[Install]
+WantedBy=network.target multi-user.target
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to