Created
October 18, 2015 01:32
-
-
Save brycied00d/c12f923433dc8aeca3e6 to your computer and use it in GitHub Desktop.
Quick script to update my GParted netboot.
This file contains hidden or 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 | |
GPVER=$1 | |
if [ -z ${GPVER} ]; then | |
# Match the download link to the LiveCD download on the project homepage. | |
GPVER=$(curl -qs http://gparted.sourceforge.net/ | sed -n -r -e 's/.*iso">Live (.*)<\/a>/\1/p') | |
echo "Fetched GParted version: ${GPVER}" | |
else | |
echo "Using GParted version: ${GPVER}" | |
fi | |
for GPARCH in amd64 i686-pae i586; do | |
wget --continue http://sourceforge.net/projects/gparted/files/gparted-live-stable/${GPVER}/gparted-live-${GPVER}-${GPARCH}.zip | |
mkdir -p ${GPARCH} | |
unzip -j -d ${GPARCH} gparted-live-${GPVER}-${GPARCH}.zip GParted-Live-Version live/filesystem.squashfs live/initrd.img live/vmlinuz syslinux/syslinux.cfg | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment