]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: introduce smartcard.target
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Jul 2010 19:32:11 +0000 (21:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Jul 2010 19:32:11 +0000 (21:32 +0200)
src/99-systemd.rules
units/smartcard.target [new file with mode: 0644]

index 6d4379ec9519a17ed96f07c2b03a40a9453e05c7..95a91ec174e9b6243d8201305583b64f065b1dd6 100644 (file)
@@ -32,5 +32,6 @@ SUBSYSTEM=="bluetooth", TAG="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/blueto
 
 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"
 
 LABEL="systemd_end"
diff --git a/units/smartcard.target b/units/smartcard.target
new file mode 100644 (file)
index 0000000..28dd2bb
--- /dev/null
@@ -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=Smart Card
+StopWhenUnneeded=yes