mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 06:11:31 +00:00
Using ram for browser (Firefox) cache on desktop images.
This commit is contained in:
parent
ee8d396fa6
commit
2dcadf627e
2 changed files with 10 additions and 0 deletions
7
config/firefox.conf
Normal file
7
config/firefox.conf
Normal 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");
|
|
@ -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/"
|
||||
|
|
Loading…
Add table
Reference in a new issue