get-scripts diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/etcher	Fri Feb 09 16:25:21 2018 +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