Update service files in repo (#133)
The service files in the repo are currently used for
upstream compilation only, we will move to use this at
a later stage , so we will need to keep the data in sync.
Change-Id: I34137fc60395146a4dc72a5c55b57e18d2edff8d
Signed-off-by: jinuthomas <jinu.joy.thomas@in.ibm.com>
diff --git a/ibm_vpd/70-ibm-vpd-parser.rules b/ibm_vpd/70-ibm-vpd-parser.rules
index 32e9f35..1f8e588 100644
--- a/ibm_vpd/70-ibm-vpd-parser.rules
+++ b/ibm_vpd/70-ibm-vpd-parser.rules
@@ -1,2 +1,3 @@
SUBSYSTEM=="nvmem", SUBSYSTEMS=="i2c", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="ibm-vpd-parser@%N.service"
-SUBSYSTEM=="nvmem", SUBSYSTEMS=="spi", ENV{OF_NAME}=="eeprom", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="ibm-vpd-parser@%N.service"
+SUBSYSTEM=="i2c", DRIVER=="ee1004", ENV{OF_NAME}=="eeprom", ACTION=="bind", TAG+="systemd", ENV{SYSTEMD_WANTS}+="ibm-isdimm-vpd-parser@%N.service"
+SUBSYSTEM=="nvmem", SUBSYSTEMS=="spi", ENV{OF_NAME}=="eeprom", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="ibm-spi-vpd-parser@%N.service"
diff --git a/ibm_vpd/ibm-vpd-parser@.service b/ibm_vpd/ibm-vpd-parser@.service
index 8d852a2..a8b2063 100644
--- a/ibm_vpd/ibm-vpd-parser@.service
+++ b/ibm_vpd/ibm-vpd-parser@.service
@@ -7,7 +7,7 @@
Before=phosphor-discover-system-state@0.service
[Service]
-ExecStart=/usr/bin/env ibm-read-vpd --file %f/nvmem
+ExecStart=/usr/bin/env ibm-read-vpd --file %f --driver at24
SyslogIdentifier=ibm-vpd-parser
[Install]
diff --git a/ibm_vpd/system-vpd.service b/ibm_vpd/system-vpd.service
index 7ad0123..5c1f076 100644
--- a/ibm_vpd/system-vpd.service
+++ b/ibm_vpd/system-vpd.service
@@ -10,7 +10,7 @@
Before=phosphor-discover-system-state@0.service
[Service]
-ExecStart=/usr/bin/env ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom
+ExecStart=/usr/bin/env ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom --driver at24
SyslogIdentifier=ibm-vpd-parser
Type=oneshot
RemainAfterExit=yes