Initial commit

Basically copy of update-linux.sh with md5sum -c and wget replaced with mac-equivalents. still needs a lot of fixing though