Posted: Fri 11 Nov 2011, 13:24
11.1.102.55
READ-ONLY Archive
https://oldforum.puppylinux.com/
yes that is good info.you can take over any time you chose.Semme wrote:aarf, it would be appropriate to list the update for what it is- Security update available for Adobe Flash Player.
Slacko and Lucid/3HD have the GetFlash utility by 01micko that downloads and installs the latest flashplayer. It doesn't use any extra space--it just overwrites the old libflashplayer.so. It can be used when one hears of a new flashplayer version or just every week to be safe
Code: Select all
#!/bin/sh
# Tman
# START -------
LOCATION="http://www.smokey01.com/Tman/apps/"
PACKAGE="current-Flashplayer.pet"
ABOUT_FILE="About_current-Flashplayer.txt"
set -x
clear
# check if the /tmp/pet folder exists; if not, then create it
if [ -d /tmp/pet ];then
cd /tmp/pet
else
mkdir /tmp/pet
cd /tmp/pet
sleep 1
fi
#
# download the about_file
wget $LOCATION$ABOUT_FILE
DESCRIPTION="`cat /tmp/pet/$ABOUT_FILE`"
# if about_file got downloaded then contiunue; else abort
if [ -f /tmp/pet/$ABOUT_FILE ];then
# Ask user if he/she wished to download the package
Xdialog --center --title "Get-Package" --icon "/usr/share/doc/flashlogo.gif" --yesno $DESCRIPTION"\n\nDo you wish to download this package?" 0 0
if [ $? -eq 0 ];then
rm -f /tmp/pet/*.pet 2>/dev/null #tidy-up; in case of duplicate files
rm -f /tmp/pet/$ABOUT_FILE 2>/dev/null
rm -f /tmp/pet/wget-log* 2>/dev/null
sleep 1
#get the package_file
rxvt -e wget $LOCATION$PACKAGE
#make sure the file downloaded
sleep 1
if [ -f /tmp/pet/$PACKAGE ];then
# if wget error message exists
if [ -f /tmp/pet/wget-log ]; then
Xdialog --title Abort --beep --msgbox " The download has been cancelled." 0 0
# tidy-up after user cancels wget download
rm -f /tmp/pet/$PACKAGE 2>/dev/null
rm -f /tmp/pet/$ABOUT_FILE 2>/dev/null
rm /tmp/pet/wget-log* 2>/dev/null
# if download wasn't cancelled, continue with install
else
cp /tmp/pet/$PACKAGE /tmp/pet/package.pet
/usr/local/petget/installpkg.sh /tmp/pet/package.pet
yaf-splash -bg orange -text "Refreshing menus, please wait..." &
fixmenus
Xdialog --title Success! --beep --msgbox "If you want to keep a copy of the downloaded file,
please move it from the /tmp/pet folder to your desired location." 0 0
rox /tmp/pet
fi
#if file didn't download
else
Xdialog --title Notice --beep --msgbox " An error occured while trying to download the package." 0 0
fi
# when user says no to downloading the package, remove the about_file
else
rm -f /tmp/pet/$ABOUT_FILE 2>/dev/null
fi
# if the about file isn't downloaded, abort
else
Xdialog --center --title "Abort" --msgbox "The location of the target file was not found.\n\nEither the file is missing, or you are not connected to the internet." 0 0
fi
# END ---