SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-02-08 13:32:31

d8a
New Member
Registered: 2012-05-04
Posts: 7

Scripts to check the Flash Player version

Today I stumbled upon the usual news about a hole in the Flash Player and although I'm having a headache ( cry )  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"
fi

Compare 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

Help fund CrunchBang, donate to the project!

#2 2013-02-08 14:49:14

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,107

Re: Scripts to check the Flash Player version

apt-cache policy flashplugin-nonfree 

will tell you without any of this.

Last edited by dura (2013-02-08 14:49:54)

Offline

#3 2013-02-08 15:05:29

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Scripts to check the Flash Player version

^ 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

#4 2013-02-08 15:11:17

d8a
New Member
Registered: 2012-05-04
Posts: 7

Re: Scripts to check the Flash Player version

dura wrote:
apt-cache policy flashplugin-nonfree 

will 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/status

It 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.262

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo