Skip to content

Instantly share code, notes, and snippets.

View manuel-baumgartner's full-sized avatar

Manuel Baumgartner manuel-baumgartner

  • Wiesbaden
View GitHub Profile
# confirm you can access the internet
if [[ ! $(curl -Is http://www.google.com/ | head -n 1) =~ "200 OK" ]]; then
echo "Your Internet seems broken. Press Ctrl-C to abort or enter to continue."
read
fi
# make partition on the disk.
parted -s /dev/sda mktable GPT
parted -s /dev/sda mkpart primary 0% 100%