wspoon: Copy in the MAX31785 hwmon config file
The code will now copy the correct air or water cooled
config file to the correct name so phosphor-hwmon can find it.
It was just a link before, but that would cause problems with
code updates as this directory is preserved, so if older
code was put back on the link would point to nothing and
phosphor-hwmon would never start for the MAX31785.
Now with the copy the old code can still pick up this file.
The only hole this has is if someone goes from the new code
back to the old code, and then swaps air/water cooling, as the
old code will then pick up the config file generated by the
newer code, which now won't match the actual config. This
would be a very unlikely scenario.
Change-Id: I45db3c3ac8265caae30163a4e90035189e861e82
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
1 file changed