phosphor-state-manager: ensure scheduled-host-transition installed

When the host services associated with phosphor-state-manager were moved
over to support multi-host, the scheduled-host-transition feature was
also moved over. Need to also install its service like the other
multi-host services.

Tested:
- Built a witherspoon image and verified service was in proper place

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I40a2a3d8053763e368de4f02827105b2cc2f05df
diff --git a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
index 7e142e7..c976301 100644
--- a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
+++ b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc
@@ -110,3 +110,21 @@
         rm $LINK
     done
 }
+
+pkg_postinst:${PN}-scheduled-host-transition:append() {
+    for i in ${OBMC_HOST_INSTANCES};
+    do
+        mkdir -p $D$systemd_system_unitdir/multi-user.target.wants
+        LINK="$D$systemd_system_unitdir/multi-user.target.wants/xyz.openbmc_project.State.ScheduledHostTransition@${i}.service"
+        TARGET="../xyz.openbmc_project.State.ScheduledHostTransition@.service"
+        ln -s $TARGET $LINK
+    done
+}
+
+pkg_prerm:${PN}-scheduled-host-transition:append() {
+    for i in ${OBMC_HOST_INSTANCES};
+    do
+        LINK="$D$systemd_system_unitdir/multi-user.target.wants/xyz.openbmc_project.State.ScheduledHostTransition@${i}.service"
+        rm $LINK
+    done
+}