summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-09 21:07:28 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-09 21:07:53 +0100
commit88dfa2938af09e511e4911e6984360ded0e2cd8d (patch)
tree0b41da4d074d09da0fc0fe7ab437a9aaa8155f0c
parentabc00c62f9b327774f9eff9651631e4ccb97cfc9 (diff)
units: introduce and hook up sound.target
-rw-r--r--Makefile.am6
-rw-r--r--src/99-systemd.rules1
-rw-r--r--units/sound.target12
3 files changed, 17 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index f6ad8091bf..537050437b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -233,6 +233,7 @@ dist_systemunit_DATA = \
units/hwclock-save.service \
units/remount-rootfs.service \
units/printer.target \
+ units/sound.target \
units/bluetooth.target \
units/smartcard.target \
units/systemd-readahead-done.timer \
@@ -1201,13 +1202,14 @@ install-data-hook:
$(LN_S) ../var-run.mount var-run.mount && \
$(LN_S) ../var-lock.mount var-lock.mount )
( cd $(DESTDIR)$(userunitdir) && \
- rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
+ rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target sound.target && \
$(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
$(LN_S) $(systemunitdir)/sockets.target sockets.target && \
$(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
$(LN_S) $(systemunitdir)/swap.target swap.target && \
$(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
- $(LN_S) $(systemunitdir)/printer.target printer.target)
+ $(LN_S) $(systemunitdir)/printer.target printer.target && \
+ $(LN_S) $(systemunitdir)/sound.target sound.target )
( cd $(DESTDIR)$(systemunitdir) && \
rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
$(LN_S) poweroff.target runlevel0.target && \
diff --git a/src/99-systemd.rules b/src/99-systemd.rules
index 815c8fd552..8c54b382f8 100644
--- a/src/99-systemd.rules
+++ b/src/99-systemd.rules
@@ -31,5 +31,6 @@ SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/bluet
SUBSYSTEM=="bluetooth", TAG+="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target"
SUBSYSTEM=="printer", TAG+="systemd", ENV{SYSTEMD_WANTS}="printer.target"
ENV{ID_SMARTCARD_READER}=="*?", TAG+="systemd", ENV{SYSTEMD_WANTS}="smartcard.target"
+SUBSYSTEM=="sound", KERNEL=="card*", TAG+="systemd", ENV{SYSTEMD_WANTS}="sound.target"
LABEL="systemd_end"
diff --git a/units/sound.target b/units/sound.target
new file mode 100644
index 0000000000..e53221c7a6
--- /dev/null
+++ b/units/sound.target
@@ -0,0 +1,12 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# See systemd.special(7) for details
+
+[Unit]
+Description=Sound Card
+StopWhenUnneeded=yes