# HG changeset patch # User Pascal Bellard # Date 1512823912 -3600 # Node ID 978498fdc18bace833764cc30823104325b8156a # Parent efd7971400df2a53fa9ddc96ea110659f1ee97c9 Add etcher diff -r efd7971400df -r 978498fdc18b etcher --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/etcher Sat Dec 09 13:51:52 2017 +0100 @@ -0,0 +1,15 @@ +SHORT_DESC="Burn images to SD cards & USB drives, safely and easily" +WEB_SITE="https://etcher.io/" +# end of get.list data + +WGET_URL=$(busybox wget -O - "$WEB_SITE/cli/" | sed \ + '/linux-x86/!d;s|.*href="\([^"]*linux-x86[^"]*\)".*|\1|') +TARBALL="$(basename $WGET_URL)" +wget -O $TARBALL $WGET_URL +[ -s $TARBALL ] || abort_package +VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\-linux.*|\1|')" + +busybox xf $TARBALL +mkdir -p $PACKAGE-$VERSION/fs/usr/share/etcher $PACKAGE-$VERSION/fs/usr/bin +mv Etcher*/* $PACKAGE-$VERSION/fs/usr/share/etcher +ln -s /usr/share/etcher/etcher $PACKAGE-$VERSION/fs/usr/bin/etcher