Add systemd eject service
This commit is contained in:
parent
b8b5cac4bb
commit
633d533b90
1
Makefile
1
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/
|
||||
|
15
tools/eject.service
Normal file
15
tools/eject.service
Normal 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
|
Loading…
Reference in New Issue
Block a user