From 633d533b90257e82ba87b702227e0a0b429b51c9 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 13 Sep 2015 01:05:02 +0200 Subject: [PATCH] Add systemd eject service --- Makefile | 1 + VERSION | 2 -- tools/eject.service | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 tools/eject.service diff --git a/Makefile b/Makefile index 81b42ca..b2b7671 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,7 @@ install-icons: install: install-dirs install-locales install-icons $(INSTALL_DATA) tools/autovt@.service $(DESTDIR)$(sysconfdir)/systemd/system/ + $(INSTALL_DATA) tools/eject.service $(DESTDIR)$(sysconfdir)/systemd/system/ $(INSTALL_PROGRAM) liveuser-sudoers $(DESTDIR)$(sysconfdir)/sudoers.d/liveuser $(INSTALL_DATA) openmamba-installer.desktop $(DESTDIR)$(SYSTEM_MENU_DIR) cp -a liveuser/.kde4 $(DESTDIR)/home/liveuser/ diff --git a/VERSION b/VERSION index 8deda33..77180f5 100644 --- a/VERSION +++ b/VERSION @@ -1,3 +1 @@ VERSION=3.0.0 - - diff --git a/tools/eject.service b/tools/eject.service new file mode 100644 index 0000000..17f90e0 --- /dev/null +++ b/tools/eject.service @@ -0,0 +1,15 @@ +[Unit] +Description=Eject the DVD +Before=final.target +After=shutdown.target +DefaultDependencies=no + +[Service] +Type=oneshot +ExecStart=/usr/bin/eject -m +StandardInput=tty-force +StandardOutput=inherit +StandardError=inherit + +[Install] +WantedBy=shutdown.target