get-scripts view etcher @ rev 77
Update dropbox (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 09 16:25:21 2018 +0100 (2018-02-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