Add systemd eject service

This commit is contained in:
Silvan Calarco 2015-09-13 01:05:02 +02:00
parent b8b5cac4bb
commit 633d533b90
3 changed files with 16 additions and 2 deletions

View File

@ -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/

View File

@ -1,3 +1 @@
VERSION=3.0.0

15
tools/eject.service Normal file
View File

@ -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