meta-quanta: gsj: Add service for setting hotswap controller
(1)Add a service for setting the value to hotswap controller,
and checking the return value is right.
(From meta-quanta rev: 83d0a87b74ac974112873690739727167137793d)
Signed-off-by: SpencerKu <Spencer.Ku@quantatw.com>
Change-Id: I51c5512562429351c007fd4ae9225b8d7097435f
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.service b/meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.service
new file mode 100644
index 0000000..ccf4ee1
--- /dev/null
+++ b/meta-quanta/meta-gsj/recipes-gsj/gsj-hotswap-change-setting/files/gsj-hotswap-change-setting.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Hotswap Controller Setting Changing
+Before=xyz.openbmc_project.Hwmon@.service
+
+[Service]
+ExecStart=/usr/bin/gsj-hotswap-change-setting.sh
+Restart=no
+Type=oneshot
+RemainAfterExit=true
+StandardOutput=syslog
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file