diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-13 02:16:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-13 02:16:44 +0200 |
commit | da78e1b444924a7e10bdde6eeba8e6c818169a86 (patch) | |
tree | 6f07ce44b7baf300a40cafb17cc33e2af7d182af | |
parent | 7c610628cd907b8d04dbfe28dd23a0fa958c7dcd (diff) |
units: introduce bluetooth.target/printer.target which are activated if the right hardware is plugged in
-rw-r--r-- | Makefile.am | 10 | ||||
-rw-r--r-- | src/99-systemd.rules | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index 51fe5a9461..ff8e847bbe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -145,7 +145,9 @@ dist_systemunit_DATA = \ units/sys-kernel-security.automount \ units/sys-kernel-security.mount \ units/var-lock.mount \ - units/var-run.mount + units/var-run.mount \ + units/printer.target \ + units/bluetooth.target nodist_systemunit_DATA = \ units/sysinit.target \ @@ -709,11 +711,13 @@ install-data-hook: $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ $(LN_S) ../systemd-initctl.socket systemd-initctl.socket ) ( cd $(DESTDIR)$(sessionunitdir) && \ - rm -f shutdown.target sockets.target local-fs.target swap.target && \ + rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.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)/swap.target swap.target && \ + $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \ + $(LN_S) $(systemunitdir)/printer.target printer.target) ( cd $(DESTDIR)$(systemunitdir) && \ rm -f runlevel0.target runlevel1.target runlevel6.target && \ $(LN_S) poweroff.target runlevel0.target && \ diff --git a/src/99-systemd.rules b/src/99-systemd.rules index 70c0d8191a..003796e590 100644 --- a/src/99-systemd.rules +++ b/src/99-systemd.rules @@ -25,4 +25,7 @@ SUBSYSTEM=="block", TAG="systemd" SUBSYSTEM=="net", KERNEL!="lo", TAG="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/%k" +SUBSYSTEM=="bluetooth", TAG="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target" +SUBSYSTEM=="printer", TAG="systemd", ENV{SYSTEMD_WANTS}="printer.target" + LABEL="systemd_end" |