Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Script created by
- # Romeo-Adrian Cioaba romeo.cioaba@spotonearth.com
- # Modified for Fedora 15 by
- # Petr "An00biS" Ohlidal ([MyNick]@[MyNick].net)
- echo "Stopping any Firefox that might be running"
- sudo killall -9 firefox
- echo "Removing any other flash plugin previously installed:"
- sudo yum remove flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
- sudo rm -f /usr/lib/mozilla/plugins/*flash*
- sudo rm -f ~/.mozilla/plugins/*flash*
- sudo rm -f /usr/lib/firefox/plugins/*flash*
- sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
- sudo rm -rfd /usr/lib/nspluginwrapper
- echo "Installing Flash Player 11"
- cd /tmp
- wget http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11/flashplayer11_b2_install_lin_64_080811.tar.gz
- tar zxvf flashplayer11_b2_install_lin_64_080811.tar.gz
- sudo cp libflashplayer.so /usr/lib64/mozilla/plugins/
- sudo cp -r usr/ /usr
- echo "Linking the libraries so Firefox and apps depending on XULRunner (vuze, liferea, rsswol) can find it."
- if [ -f /usr/lib/firefox-addons/plugins/ ]; then
- sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/
- fi
- if [ -f /usr/lib/xulrunner-addons/plugins/ ]; then
- sudo ln -sf /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/xulrunner-addons/plugins/
- fi
- # now doing some cleaning up:
- sudo rm -rf libflashplayer.so
- sudo rm -rf usr/
- sudo rm -rf flashplayer11_b2_install_lin_64_080811.tar.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement