Last active
August 29, 2015 14:07
-
-
Save rubenerd/5a21f77db58210eb1ce8 to your computer and use it in GitHub Desktop.
Create bootable Sophos UTM key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Creates bootable USB key of Sophos UTM ISO. Takes destination block device as argument | |
TARGET=$1 | |
curl -OL http://download.astaro.com/UTM/v9/software_appliance/iso/asg-9.207-19.1.iso | |
curl -OL http://download.astaro.com/UTM/v9/software_appliance/iso/asg-9.207-19.1.iso.md5 | |
md5sum -c $VERSION.md5 | grep 'OK' &> /dev/null | |
if [ $? != 0 ]; then | |
echo "Incomplete or invalid file download. Please try again." | |
else | |
isohybrid asg-9.207-19.1.iso | |
dcfldd if=asg-9.207-19.1.iso of=/dev/$TARGET | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment