summarylogtreecommitdiffstats
path: root/chromium-pepper-flash.install
blob: 5e9121705e1be77c0ab57c1c5f7d6e9cd1b405ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[ -f etc/chromium/pepperflash ] && _default='etc/chromium/pepperflash'

instructions() {

cat << EOF

	Disable all other flash plugins:
	  1. Type chrome://plugins/ in the adress bar and press Enter
	  2. Click on Details button on the top right
	  3. Click on Disable near all the Flash plugins except the first one

EOF

}

post_upgrade()
{
        if [ -f "$_default" ]; then
		rm "$_default"
        else
                : # do nothing
        fi
}

post_install() {
  instructions
}

post_remove() {
	if [ -f "$_pepperflash" ]; then
                rm "$_default"                
	else
		: # do nothing
	fi
}