Initial systemd support
authorMichael Prokop <mika@grml.org>
Tue, 12 Jan 2016 10:46:06 +0000 (11:46 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 30 Dec 2016 22:05:53 +0000 (23:05 +0100)
debian/grml-autoconfig.install [new file with mode: 0644]
debian/rules
systemd/grml-autoconfig.service [new file with mode: 0644]

diff --git a/debian/grml-autoconfig.install b/debian/grml-autoconfig.install
new file mode 100644 (file)
index 0000000..1676ff5
--- /dev/null
@@ -0,0 +1 @@
+systemd/* lib/systemd/system/
index 558742c..4dd5308 100755 (executable)
@@ -54,6 +54,7 @@ binary-arch: build install
 binary-indep: build install
        dh_testdir
        dh_testroot
 binary-indep: build install
        dh_testdir
        dh_testroot
+       dh_install
        dh_installchangelogs
        dh_installdocs doc/grml-autoconfig.1.html doc/grml-autoconfig.8.html \
                        doc/restore-config.1.html doc/save-config.1.html
        dh_installchangelogs
        dh_installdocs doc/grml-autoconfig.1.html doc/grml-autoconfig.8.html \
                        doc/restore-config.1.html doc/save-config.1.html
diff --git a/systemd/grml-autoconfig.service b/systemd/grml-autoconfig.service
new file mode 100644 (file)
index 0000000..1b0617b
--- /dev/null
@@ -0,0 +1,15 @@
+# This file is part of grml-autoconfig for usage with systemd.
+
+[Unit]
+Description=Grml boot option support
+Before=getty.target
+After=rc-local.service
+
+[Service]
+ExecStart=/etc/init.d/grml-autoconfig
+Type=oneshot
+StandardOutput=tty
+StandardError=journal+console
+
+[Install]
+WantedBy=multi-user.target