get-scripts view etcher @ rev 74
Add etcher
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 09 13:51:52 2017 +0100 (2017-12-09) |
parents | |
children |
line source
1 SHORT_DESC="Burn images to SD cards & USB drives, safely and easily"
2 WEB_SITE="https://etcher.io/"
3 # end of get.list data
5 WGET_URL=$(busybox wget -O - "$WEB_SITE/cli/" | sed \
6 '/linux-x86/!d;s|.*href="\([^"]*linux-x86[^"]*\)".*|\1|')
7 TARBALL="$(basename $WGET_URL)"
8 wget -O $TARBALL $WGET_URL
9 [ -s $TARBALL ] || abort_package
10 VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\-linux.*|\1|')"
12 busybox xf $TARBALL
13 mkdir -p $PACKAGE-$VERSION/fs/usr/share/etcher $PACKAGE-$VERSION/fs/usr/bin
14 mv Etcher*/* $PACKAGE-$VERSION/fs/usr/share/etcher
15 ln -s /usr/share/etcher/etcher $PACKAGE-$VERSION/fs/usr/bin/etcher