diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-16 21:32:11 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-16 21:32:11 +0200 |
commit | 2d3b2c0032268a32557cb03a98175b828620a706 (patch) | |
tree | 0b5c32bc1a87df7af0ec977c21fd30c3c683a9b3 | |
parent | 0ff3dea70038ca4501ab38ad38ecd67d8eea1e00 (diff) |
units: introduce smartcard.target
-rw-r--r-- | src/99-systemd.rules | 1 | ||||
-rw-r--r-- | units/smartcard.target | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/99-systemd.rules b/src/99-systemd.rules index 6d4379ec95..95a91ec174 100644 --- a/src/99-systemd.rules +++ b/src/99-systemd.rules @@ -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 index 0000000000..28dd2bba1a --- /dev/null +++ b/units/smartcard.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=Smart Card +StopWhenUnneeded=yes |