motioneyeos icon indicating copy to clipboard operation
motioneyeos copied to clipboard

improvements to writeimage.sh

Open AntiSol opened this issue 2 years ago • 1 comments
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! :)

AntiSol avatar Mar 08 '23 13:03 AntiSol

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"

AntiSol avatar Oct 25 '24 10:10 AntiSol