Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- NEWPROFILE=$HOME/.mozilla/firefox/ram-profile
- OLDPROFILE=$HOME/.mozilla/firefox/4c5cmgxg.default
- LOCK=$NEWPROFILE/ready
- if [ ! -f $LOCK ];
- then
- TMPDIR=`mktemp -d -t firefoxram-XXXXXX`
- chmod 700 $TMPDIR
- rm -f $NEWPROFILE
- ln -s $TMPDIR $NEWPROFILE
- rsync -a $OLDPROFILE/ $NEWPROFILE/
- # mark as finished
- touch $LOCK
- fi
- exec /usr/bin/firefox -P ram $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement