summarylogtreecommitdiffstats
path: root/chromium-pepper-flash.install
diff options
context:
space:
mode:
authorReventlov2015-06-08 22:05:42 +0200
committerReventlov2015-06-08 22:05:42 +0200
commit33c6a79b8a907ff171e66a493a7b3132bd6f67e0 (patch)
tree69487c58db6773d99e9e5bf05fae2ee1a26b1a82 /chromium-pepper-flash.install
downloadaur-33c6a79b8a907ff171e66a493a7b3132bd6f67e0.tar.gz
initial version
Diffstat (limited to 'chromium-pepper-flash.install')
-rw-r--r--chromium-pepper-flash.install35
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium-pepper-flash.install b/chromium-pepper-flash.install
new file mode 100644
index 000000000000..5e9121705e1b
--- /dev/null
+++ b/chromium-pepper-flash.install
@@ -0,0 +1,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
+}