xref: /openbmc/pldm/oem/ibm/service_files/scripts/create-NVRAM-file (revision 95c872c1adab015a9cc22425e07eeee8896f4a52)
12cff3015SManojkiran Eda#!/bin/sh
22cff3015SManojkiran Eda
32cff3015SManojkiran Edaif [ -f /var/lib/pldm/PHYP-NVRAM ]; then
42cff3015SManojkiran Eda    mv /var/lib/pldm/PHYP-NVRAM /var/lib/phosphor-software-manager/hostfw/nvram/PHYP-NVRAM;
52cff3015SManojkiran Edaelse
6*95c872c1SAndrew Jeffery    truncate -s $((1024 * 145408)) /var/lib/phosphor-software-manager/hostfw/nvram/PHYP-NVRAM
72cff3015SManojkiran Edafi
8