ea25bc48d7
Reading the wl1251 data on each boot can be useful when using the same SD card on different devices, allowing each to fetch its correct calibration data. Additionally, this opens up the possibility to simplify the packaging (in follow-up commit)
10 lines
284 B
Bash
10 lines
284 B
Bash
#!/bin/sh -e
|
|
|
|
if [ -e /in-pmbootstrap ]; then
|
|
echo "Skipping update of wl1251 calibration data (running in pmbootstrap)"
|
|
exit 0
|
|
fi
|
|
|
|
echo "Updating wl1251 calibration data.."
|
|
wl1251-cal --nvs-loading=/dev/null --nvs-push-data=/lib/firmware/ti-connectivity/wl1251-nvs.bin
|
|
echo "Done"
|