daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. NEWPROFILE=$HOME/.mozilla/firefox/ram-profile
  4. OLDPROFILE=$HOME/.mozilla/firefox/4c5cmgxg.default
  5.  
  6. LOCK=$NEWPROFILE/ready
  7.  
  8. if [ ! -f $LOCK ];
  9. then
  10.         TMPDIR=`mktemp -d -t firefoxram-XXXXXX`
  11.         chmod 700 $TMPDIR
  12.  
  13.         rm -f $NEWPROFILE
  14.         ln -s $TMPDIR $NEWPROFILE
  15.  
  16.         rsync -a $OLDPROFILE/ $NEWPROFILE/
  17.  
  18.         # mark as finished
  19.         touch $LOCK
  20. fi
  21.  
  22. exec /usr/bin/firefox -P ram $@
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top