Autostart of rayhunter on MF800B fails when building on Windows #1

Open
opened 2026-09-30 00:20:39 +02:00 by Tilman Jeske · 0 comments

Prerequisites

Bug Report Details

When building on Windows, rayhunter will not autostart after turning the MF800B on.

Reason: On Windows, line endings are stored as CRLF, whereas Linux uses only LF. Git by default uses the line endings according to its base system. During build, the script at dist/scripts/mf800b_install_recovery.sh (the one responsible for autostarting rayhunter) gets compiled into the installer binary, INCLUDING the line endings, and is then copied over to the MF800B during install. This causes the script to fail when it is executed on the device.

Fix: Rayhunter repo has a list of scripts to force LF line endings for the scripts on other target devices. Add the following line to .gitattributes to add MF800B to the list as well:
dist/scripts/mf800b_install_recovery.sh eol=lf

### Prerequisites - [x] I have read [CONTRIBUTING.md](https://github.com/EFForg/rayhunter/blob/main/CONTRIBUTING.md) ### Bug Report Details When building on Windows, rayhunter will not autostart after turning the MF800B on. **Reason:** On Windows, line endings are stored as CRLF, whereas Linux uses only LF. Git by default uses the line endings according to its base system. During build, the script at `dist/scripts/mf800b_install_recovery.sh` (the one responsible for autostarting rayhunter) gets compiled into the installer binary, INCLUDING the line endings, and is then copied over to the MF800B during install. This causes the script to fail when it is executed on the device. **Fix:** Rayhunter repo has a list of scripts to force LF line endings for the scripts on other target devices. Add the following line to `.gitattributes` to add MF800B to the list as well: `dist/scripts/mf800b_install_recovery.sh eol=lf`
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Hakkaatachi/rayhunter#1
No description provided.