You are not logged in.
Today I stumbled upon the usual news about a hole in the Flash Player and although I'm having a headache (
) due to the cold I caught recently, I thought it's time to do something possibly useful.
This is what I came up with:
flash-installed-version
#!/bin/bash
strings /usr/lib/flashplugin-nonfree/libflashplayer.so | awk /^FlashPlayer_/ | sed 's/FlashPlayer_//g;s/_FlashPlayer//g;s/_/./g'It searches the installed libflashplayer.so for it's version. Mine is located at /usr/lib/flashplugin-nonfree your's might be somewhere else.
flash-current-version
#!/bin/bash
curl http://www.adobe.com/software/flash/about/ -s | w3m -dump -T text/html | grep Linux | awk '{ print $10; }'Check http://www.adobe.com/software/flash/about/ for the current version.
flash-check
#!/bin/bash
current=$(flash-current-version)
installed=$(flash-installed-version)
if [ $current == $installed ];
then
echo "Flash Player is up to date"
fi
if [ $current != $installed ];
then
echo "New version of Flash Player is available"
fiCompare the two and tell me whether I need to update.
Now my conky tells me when I have to update this disaster that's called the Flash Player.
Any suggestions are welcome.
Offline
apt-cache policy flashplugin-nonfree will tell you without any of this.
Last edited by dura (2013-02-08 14:49:54)
Offline
^ Not everyone uses flashplugin-nonfree ...
@ d8a, thanks for sharing these scripts
VSIDO | Words That Build Or Destroy
We do not run from challenges, they become new innovations within VSIDO!
Offline
apt-cache policy flashplugin-nonfreewill tell you without any of this.
Actually AFAIK it doesn't.
d8a@fuckup:~$ apt-cache policy flashplugin-nonfree
flashplugin-nonfree:
Installed: 1:2.8.2
Candidate: 1:2.8.2
Version table:
*** 1:2.8.2 0
500 http://ftp.at.debian.org/debian/ squeeze/contrib amd64 Packages
100 /var/lib/dpkg/statusIt tells me about the version of the flashplugin-nonfree package but not about the flashplugin's version. This package pulls the flashplugin off the Adobe site and places it in /usr/lib/flashplugin-nonfree/. So there's a difference between the package version and the flashplugin version.
On the ohter hand my script:
d8a@fuckup:~$ flash-installed-version
11.2.202.262
d8a@fuckup:~$ flash-current-version
11.2.202.262Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.