Using ram for browser (Firefox) cache on desktop images.

This commit is contained in:
Igor Pecovnik 2017-01-16 21:13:06 +01:00
parent ee8d396fa6
commit 2dcadf627e
2 changed files with 10 additions and 0 deletions

7
config/firefox.conf Normal file
View file

@ -0,0 +1,7 @@
// This file can be used to configure global preferences for Firefox
user_pref("browser.startup.homepage", "https://www.armbian.com");
pref("reader.parse-on-load.enabled", false);
pref("browser.cache.disk.enable", false);
pref("browser.cache.memory.enable", true);
pref("browser.cache.memory.capacity", "-1");

View file

@ -16,6 +16,9 @@ install_desktop ()
mkdir -p $CACHEDIR/$SDCARD/tmp/bin
mount --bind $SRC/lib/bin/ $CACHEDIR/$SDCARD/tmp/bin
# install optimized firefox configuration
cp $SRC/lib/config/firefox.conf $CACHEDIR/$SDCARD/usr/lib/firefox/browser/defaults/preferences/syspref.js
# install default desktop settings
chroot $CACHEDIR/$SDCARD /bin/bash -c "tar xfz /tmp/bin/$RELEASE-desktop.tgz -C /etc/skel/"
chroot $CACHEDIR/$SDCARD /bin/bash -c "tar xfz /tmp/bin/$RELEASE-desktop.tgz -C /root/"