post_install() { if [ -d /etc/chromium-browser ]; then if [[ $(cat /etc/chromium-browser/default) == *ppapi* ]]; then : # do nothing else sed -i '/CHROMIUM_FLAGS/s|"$| --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.3.31.103"|' /etc/chromium-browser/default fi else if [[ $(cat /etc/chromium/default) == *ppapi* ]]; then : # do nothing else sed -i '/CHROMIUM_FLAGS/s|"$| --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=11.3.31.103"|' /etc/chromium/default fi fi instructions } post_upgrade() { if [ -d /etc/chromium-browser ]; then sed -i "s/ppapi-flash-version=.*[0-9]/ppapi-flash-version=11.3.31.103/g" /etc/chromium-browser/default else sed -i "s/ppapi-flash-version=.*[0-9]/ppapi-flash-version=11.3.31.103/g" /etc/chromium/default fi } post_remove() { if [ -d /etc/chromium-browser ]; then if [ -f /etc/chromium-browser/default ]; then sed -i 's| --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=1.*[0-999]||' /etc/chromium-browser/default else : # do nothing fi else if [ -f /etc/chromium/default ]; then sed -i 's| --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=1.*[0-999]||' /etc/chromium/default else : # do nothing fi fi } instructions() { /bin/cat << EOF Disable all other flash plugins: Type chrome://plugins/ in the address bar and press Enter Click on Details button on the top right Click on Disable near all the Flash plugins except the first one EOF }