[or-cvs] r16201: Show the "enable persistent" shortcut on the desktop when pe (incognito/trunk/root_overlay/etc/conf.d)

anonym at seul.org anonym at seul.org
Fri Jul 25 14:11:05 UTC 2008


Author: anonym
Date: 2008-07-25 10:11:05 -0400 (Fri, 25 Jul 2008)
New Revision: 16201

Modified:
   incognito/trunk/root_overlay/etc/conf.d/local.start
Log:
Show the "enable persistent" shortcut on the desktop when persistent volume has been disabled.


Modified: incognito/trunk/root_overlay/etc/conf.d/local.start
===================================================================
--- incognito/trunk/root_overlay/etc/conf.d/local.start	2008-07-25 14:09:05 UTC (rev 16200)
+++ incognito/trunk/root_overlay/etc/conf.d/local.start	2008-07-25 14:11:05 UTC (rev 16201)
@@ -1,3 +1,14 @@
 # For some reason, "/media" doesn't appear when running the liveCD although it
 # is created by catalyst during build and is present within the image (FIXME).
 [[ ! -e /media ]] && mkdir /media
+
+
+# The following detects if the persistent home creation guide has been
+# disabled and in that case puts the re-enabling option on the desktop
+
+# FIXME: we should get this from somewhere
+LOCK_FILE=/mnt/cdrom/LOCK_NO_PERSISTENT
+
+if [[ -e ${LOCK_FILE} ]]; then
+	ln -s /usr/share/applications/enable-persistent-vol.desktop /home/__INCOGNITO_USER__/Desktop
+fi



More information about the tor-commits mailing list