Created
August 30, 2019 17:51
-
-
Save jonbarrow/bd231c4d64a527157eb78caa0ca5ab52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ********************************************************************** | |
# * Project: 00-piws-vars * | |
# * Created: 05/06/2018 22:27 * | |
# * Author: Martin Svensson aka ztealmax - pi-workbench.org * | |
# * Info: create in /etc/chromium-browser/customizations/ * | |
# * Note: replaces rpi-chromium-mods * | |
# ********************************************************************** | |
# | |
PICHROMIUMMODS="/etc/chromium-browser/customizations/00-rpi-vars" | |
if [ -f "$PICHROMIUMMODS" ]; | |
then | |
echo "$PICHROMIUMMODS purge rpi-chromium-mods..." | |
sudo apt-get remove --purge --autoremove -y rpi-chromium-mods | |
else | |
echo "rpi-chromium mods not present all is good..." >&2 | |
# -[10]-chromium-customizations.sh-------------------------------------- | |
sudo -- sh -c "echo 'CHROMIUM_FLAGS=' >> /etc/chromium-browser/customizations/00-piws-vars" | |
sudo sed -i 's/'CHROMIUM_FLAGS='/''CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-checker-imaging --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --enable-simple-cache-backend --answers-in-suggest --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version= --max-tiles-for-interest-area=512 --num-raster-threads=4 --default-tile-height=512"''/g' /etc/chromium-browser/customizations/00-piws-vars | |
# -------------------------------------------------------------[10]-END- | |
echo "piws-chromium modifications is now installed..." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment