
I value very much his work and devotion to slackware and linux.
Code: Select all
#!/bin/sh
# http://forum.porteus.org/viewtopic.php?f=53&t=4840&p=35284#p35280
ALIEN=http://www.slackware.com/~alien/slackbuilds/flashplayer-plugin/build
ARCH=i386
if [ `echo $MACHTYPE | sed -e 's/-.*$//'` = x86_64 ]; then
ARCH=x86_64
fi
FPVERSION=616
if [ `whoami` != "root" ]; then
echo "Module unavailable via USM?"
echo -en "Press Enter to download vrsn $FPVERSION, Ctrl+C to end.\n"
read answer
fi
if [ `whoami` != "root" ]; then
ktsuss "$0 $1"
exit
fi
if [ -d "/home/guest/Downloads/flashplayer-plugin/" ]; then
rm /home/guest/Downloads/flashplayer-plugin/*
fi
wget $ALIEN/flashplayer-plugin.SlackBuild -P /home/guest/Downloads/flashplayer-plugin
wget $ALIEN/install_flash_player_11.2.202.$FPVERSION_linux_$ARCH.gz -P /home/guest/Downloads/flashplayer-plugin
wget $ALIEN/slack-desc -P /home/guest/Downloads/flashplayer-plugin
cd /home/guest/Downloads/flashplayer-plugin
chmod +x flashplayer-plugin.SlackBuild
./flashplayer-plugin.SlackBuild
txz2xzm /tmp/*.txz
echo
echo Done
Actually NO. It creates a 491 flashplayer module!!Ed_P wrote:This works.
Wow!!Blaze wrote:Better use for this small GUI script - Adobe Flash Player Auto Updater
![]()
.
- for x86 update_flash-1.4-x86.xzm.
- for X86_64 update_flash-1.4_x86_64.xzm
Code: Select all
# Determine the latest version by checking the web page:
VERSION=${VERSION:-"$(wget -O - http://www.adobe.com/software/flash/about/ 2>/dev/null | sed -n "/Firefox - NPAPI/{N;p}" | tr -d ' '| tail -1 | tr '<>' ' ' | cut -f3 -d ' ')"}
Code: Select all
/tmp/adobeflashabout: gzip compressed data, from Unix
Code: Select all
cat abobeflashabout.html | sed -n "/Firefox - NPAPI/{N;p}" | tr -d ' '| tail -1 | tr '<>' ' ' | cut -f3 -d ' '
11.2.202.635
Code: Select all
guest@porteus:~$ ./flashplayer-version-ck.sh
Latest version = 11.2.202.635
Using version = 22.0.0.209-x86_64-1.xzm
guest@porteus:~$
Code: Select all
# http://forum.porteus.org/viewtopic.php?f=48&t=5627&p=43636#p43406
# Determine the latest version by checking the web page:
VERSION=${VERSION:-"$(wget -O - http://www.adobe.com/software/flash/about/ 2>/dev/null | sed -n "/Firefox - NPAPI/{N;p}" | tr -d ' '| tail -1 | tr '<>' ' ' | cut -f3 -d ' ')"}
echo "Latest version = "$VERSION
LIVE=`grep "flashplayer" /var/log/porteus-livedbg|tail -n1|sed 's^//^/^g'`
LIVE=${LIVE:48}
#LIVE=${LIVE:-20:10}
echo "Using version = " $LIVE
Code: Select all
###
### Sample Wget initialization file .wgetrc by http://www.askapache.com
###
##
## Local settings (for a user to set in his $HOME/.wgetrc). It is
## *highly* undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
##
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.
##
header = Accept-Language: en-us,en;q=0.5
header = Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
header = Accept-Encoding: gzip,deflate
header = Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
header = Keep-Alive: 300
user_agent = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
referer = http://www.google.com