Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #based on https://gist.github.com/3065781 which is based on https://wiki.archlinux.org/index.php/Chromium
- #mounting the filesystem as writable
- mount -o remount, rw /
- cd /opt/
- echo "Downloading important data"
- if [ `uname -m` == 'x86_64' ]; then
- # 64-bit
- wget --no-check-certificate -O "data.tar" "https://googledrive.com/host/0B78S5hOqFxkOOGpDSHp4YWt0REU/x64addons.tar"
- else
- # 32-bit
- wget --no-check-certificate -O "data.tar" "https://googledrive.com/host/0B78S5hOqFxkOOGpDSHp4YWt0REU/addons.tar"
- fi
- echo "extracting the very important data!"
- tar -xf data.tar
- #creating some directories as they aren't there
- mkdir /usr/lib/cromo/
- mkdir -p /usr/lib/mozilla/plugins/
- mkdir -p /opt/google/chrome/pepper/
- #Flash, pdf
- #mp3,mp4, stopped working...
- cp /opt/data/libffmpegsumo.so /usr/lib/cromo/ -f
- cp /opt/data/libffmpegsumo.so /opt/google/chrome/ -f
- cp /opt/data/libffmpegsumo.so /usr/lib/mozilla/plugins/ -f
- #pdf
- cp /opt/data/libpdf.so /opt/google/chrome/ -f
- #flash
- cp /opt/data/libpepflashplayer.so /opt/google/chrome/pepper/ -f
- cp /opt/data/manifest.json /opt/google/chrome/pepper/ -f
- cp /opt/data/pepper-flash.info /opt/google/chrome/pepper/ -f
- echo "deleting downloaded crap"
- rm -rf /opt/data/
- rm /opt/data.tar
- restart ui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement