wok-next rev 16384
Fix: get-flash-plugin (fixed url. Works for me)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Tue Apr 15 11:26:56 2014 +0400 (2014-04-15) |
parents | 691fb356b315 |
children | beb6debfbc7d |
files | get-flash-plugin/stuff/get-flash-plugin |
line diff
1.1 --- a/get-flash-plugin/stuff/get-flash-plugin Tue Apr 15 07:23:45 2014 +0200 1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin Tue Apr 15 11:26:56 2014 +0400 1.3 @@ -21,33 +21,15 @@ 1.4 [ -d $INSTALLED/$PACKAGE ] && exit 1 1.5 fi 1.6 1.7 -VERSION=$(echo " $@ " | sed '/ [0-9]* /!d;s/.* \([0-9]*\) .*/\1/') 1.8 -[ -n "$VERSION" ] && [ $VERSION -lt 100 ] && VERSION=${VERSION}0 1.9 +VERSION=11.2.202.350 1.10 1.11 -URL= 1.12 -for i in ${VERSION/./} $(seq 111 999); do 1.13 - n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i:0:2}.${i:2:1}_for_other_Linux_(.tar.gz)_32-bit" | \ 1.14 - sed "/gz/!d;s/.* '//;s/'.*//")" 1.15 - [ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION/./}" ] && continue 1.16 - [ -n "$URL" ] && break 1.17 -done 1.18 -[ -z "$URL" ] && for i in ${VERSION:0:2} $(seq 11 99); do 1.19 - n="$(busybox wget -O - "http://get.adobe.com/fr/flashplayer/completion/?installer=Flash_Player_${i}_for_other_Linux_(.tar.gz)_32-bit" | \ 1.20 - sed "/gz/!d;s/.* '//;s/'.*//")" 1.21 - [ -n "$n" ] && URL="$n" && [ "$i" != "${VERSION:0:2}" ] && continue 1.22 - [ -n "$URL" ] && break 1.23 -done 1.24 - 1.25 -if [ -z "$URL" ]; then 1.26 - echo "Could not find url. Exiting." 1.27 - exit 1 1.28 -fi 1.29 - 1.30 +URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/$VERSION/install_flash_player_11_linux.i386.tar.gz 1.31 TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM 1.32 CUR_DIR=$(pwd) 1.33 mkdir -p $TMP_DIR && cd $TMP_DIR 1.34 -TARBALL="$(basename $URL)" 1.35 +TARBALL="install_flash_player_11_linux.i386.tar.gz" 1.36 busybox wget -O $TARBALL $URL 1.37 + 1.38 if [ ! -f $TARBALL ]; then 1.39 echo "Could not download $TARBALL. Exiting." 1.40 exit 1 1.41 @@ -55,8 +37,6 @@ 1.42 1.43 tar xzf $TARBALL 1.44 1.45 -VERSION="$(strings libflashplayer.so | grep ^LNX | sed -e 's/LNX //' -e 's/,/./g')" 1.46 - 1.47 # Install files 1.48 chmod 755 libflashplayer.so 1.49 chown root.root libflashplayer.so