motioneyeos
motioneyeos copied to clipboard
improvements to writeimage.sh
trafficstars
Hi,
Here are some tweaks I made to writeimage.sh:
- decompress images on the fly, no intermediate file (save some disk space / cleanup headaches)
- use pv (if available) to show pretty progress bar for image write (otherwise show dd progress info)
- use dd's direct/sync options, no need to sync all disks (might be marginally faster)
- move superuser check to last (so that other args are parsed and warnings show before running elevated or prompting for password)
Hope you like! :)
Only those with [write access](https://docs.github.com/articles/what-are-the-different-access-permissions) to this repository can merge pull requests.
I think that means someone who isn't me has to press "merge"