1[Unit]
2Description=Flash image-bmc to the alt chip and reset cs0
3
4[Service]
5Type=oneshot
6RemainAfterExit=no
7ExecStartPre=-/bin/systemctl stop xyz.openbmc_project.Software.Sync.service
8ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rofs-alt
9ExecStartPre=-/usr/bin/obmc-flash-bmc umount-static-altfs rwfs-alt
10ExecStart=/usr/sbin/flashcp /tmp/images/%i/image-bmc /dev/mtd/alt-bmc
11ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs squashfs alt-rofs rofs-alt
12ExecStartPost=-/usr/bin/obmc-flash-bmc static-altfs jffs2 alt-rwfs rwfs-alt
13ExecStartPost=-/bin/systemctl start xyz.openbmc_project.Software.Sync.service
14ExecStartPost=-/usr/bin/reset-cs0-aspeed
15