get-scripts rev 74
Add etcher
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 09 13:51:52 2017 +0100 (2017-12-09) |
parents | efd7971400df |
children | a5139b147553 |
files | etcher |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/etcher Sat Dec 09 13:51:52 2017 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +SHORT_DESC="Burn images to SD cards & USB drives, safely and easily" 1.5 +WEB_SITE="https://etcher.io/" 1.6 +# end of get.list data 1.7 + 1.8 +WGET_URL=$(busybox wget -O - "$WEB_SITE/cli/" | sed \ 1.9 + '/linux-x86/!d;s|.*href="\([^"]*linux-x86[^"]*\)".*|\1|') 1.10 +TARBALL="$(basename $WGET_URL)" 1.11 +wget -O $TARBALL $WGET_URL 1.12 +[ -s $TARBALL ] || abort_package 1.13 +VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\-linux.*|\1|')" 1.14 + 1.15 +busybox xf $TARBALL 1.16 +mkdir -p $PACKAGE-$VERSION/fs/usr/share/etcher $PACKAGE-$VERSION/fs/usr/bin 1.17 +mv Etcher*/* $PACKAGE-$VERSION/fs/usr/share/etcher 1.18 +ln -s /usr/share/etcher/etcher $PACKAGE-$VERSION/fs/usr/bin/etcher