[or-cvs] r19986: {incognito} Make i2p's working directory persistent while on USB. (incognito/trunk)
anonym at seul.org
anonym at seul.org
Mon Jul 13 00:53:31 UTC 2009
Author: anonym
Date: 2009-07-12 20:53:31 -0400 (Sun, 12 Jul 2009)
New Revision: 19986
Modified:
incognito/trunk/fsscript.sh
Log:
Make i2p's working directory persistent while on USB.
Modified: incognito/trunk/fsscript.sh
===================================================================
--- incognito/trunk/fsscript.sh 2009-07-13 00:47:04 UTC (rev 19985)
+++ incognito/trunk/fsscript.sh 2009-07-13 00:53:31 UTC (rev 19986)
@@ -213,15 +213,21 @@
passwd -d "${USERNAME}"
done
-if [[ -x /usr/share/freenet ]]; then
+# This is necessary for making FreeNet's and i2p's working directories
+# persistent when on USB. Note that this should be done AFTER the above loop
+# for setting up users with dirs in /home.
+if [[ -d /var/freenet ]]; then
echo "Setting up FreeNet"
- # This is necessary for making FreeNet's working directory persistent
- # when on USB. Note that this should be done AFTER the above loop for
- # setting up users with dirs in /home.
mv /var/freenet /home/freenet
ln -s /home/freenet /var/freenet
fi
+if [[ -d /var/i2p ]]; then
+ echo "Setting up i2p"
+ mv /var/i2p /home/i2p
+ ln -s /home/i2p /var/i2p
+fi
+
# Install VirtualBox guest additions (depends on virtualbox-ose-additions)
# FIXME: would it be sane to do this in an ebuild instead?
VBOX_DIST="$(mktemp -t -d incognitoXXXXXXXX)"
More information about the tor-commits
mailing list