|
MODEL=$(grep -o "Raspberry Pi [0-9]" /proc/device-tree/model) |
This command fails because of the null characters returned in this particular file.
Error message: grep: /proc/device-tree/model: binary file matches
Add the -a flag to grep to treat the file as text.
MODEL=$(grep -oa "Raspberry Pi [0-9]" /proc/device-tree/model)
meshtastic_scripts/lora_hat_setup.sh
Line 31 in 8a15f16
This command fails because of the null characters returned in this particular file.
Error message:
grep: /proc/device-tree/model: binary file matchesAdd the
-aflag to grep to treat the file as text.MODEL=$(grep -oa "Raspberry Pi [0-9]" /proc/device-tree/model)