]> err.no Git - systemd/commitdiff
units: introduce bluetooth.target/printer.target which are activated if the right...
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 00:16:44 +0000 (02:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 00:16:44 +0000 (02:16 +0200)
Makefile.am
src/99-systemd.rules

index 51fe5a946139c47d7e6461f131de357c0339fdb6..ff8e847bbefe7562e4f95aab9cbf4872799d4fd5 100644 (file)
@@ -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 && \
index 70c0d8191a4b91f711a15264c16dc6ac11c2af67..003796e5908f3ecbafba3d17b724140e12ba1ff7 100644 (file)
@@ -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"