Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pistar-mmdvmhshatflash-custom support for stdin #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rawbengal
Copy link

In my experimentation, I have been developing on a remote machine and then pushing my firmware changes to the RPi and MMDVM board. With this method, I have found it helpful to avoid the need to make the filesystem read/write, copy the file and the invoke the flash command.

The attached commit adds support for piping stdin as the source of the firmware in pistar-mmdvmhshatflash-custom. e.g:

ssh [email protected] sudo pistar-mmdvmhshatflash-custom - < mylocalfirmwarefile.bin

It also skips the full reboot of the Pi by just restarting the MMDVM host service. This has seemed to work fine for me in practice.

There is also a small help text typo fix.

- add support for sending flash file from stdin, allowing piping file from another machine
- no longer reboots upon completion. Just restarts mmdvmhost service.
- preserves the state of mmdvmhost service (only restarts if it was running)
- puts temporary files in /tmp to avoid need to make filesystem RW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant