Do not run chassis power target services if power on

This is the first commit in a series that will ensure
we do not run the chassis power on services when the
chassis is already on.

Specifically this is to handle the situation where the
chassis is on and the BMC is rebooted.

Change-Id: I733ca076f044731a4ba327fe2f46302dce5f4edd
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service
index f9fd425..8561bf2 100644
--- a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service
+++ b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-disable@.service
@@ -3,6 +3,7 @@
 Wants=obmc-power-stop-pre@%i.target
 Before=obmc-power-stop-pre@%i.target
 Conflicts=obmc-chassis-start@%i.target
+ConditionPathExists=!/run/openbmc/chassis@%i-on
 
 [Service]
 ExecStart={bindir}/zaius_avsbus.sh disable
diff --git a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service
index 5980d7c..f305907 100644
--- a/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service
+++ b/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service
@@ -3,6 +3,7 @@
 Wants=obmc-host-start-pre@%i.target
 Before=obmc-host-start-pre@%i.target
 Conflicts=obmc-chassis-stop@%i.target
+ConditionPathExists=!/run/openbmc/chassis@%i-on
 
 [Service]
 ExecStart={bindir}/zaius_avsbus.sh vdn_max