xref: /openbmc/pldm/oem/ibm/service_files/scripts/create-NVRAM-file (revision 95c872c1adab015a9cc22425e07eeee8896f4a52)
1#!/bin/sh
2
3if [ -f /var/lib/pldm/PHYP-NVRAM ]; then
4    mv /var/lib/pldm/PHYP-NVRAM /var/lib/phosphor-software-manager/hostfw/nvram/PHYP-NVRAM;
5else
6    truncate -s $((1024 * 145408)) /var/lib/phosphor-software-manager/hostfw/nvram/PHYP-NVRAM
7fi
8