[maemo-commits] [maemo-commits] r17320 - in projects/haf/trunk/ke-recv: debian src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Jan 29 12:44:19 EET 2009
Author: kihamala
Date: 2009-01-29 12:44:19 +0200 (Thu, 29 Jan 2009)
New Revision: 17320

Modified:
   projects/haf/trunk/ke-recv/debian/changelog
   projects/haf/trunk/ke-recv/src/osso-mmc-mount.sh
Log:
dot directories


Modified: projects/haf/trunk/ke-recv/debian/changelog
===================================================================
--- projects/haf/trunk/ke-recv/debian/changelog	2009-01-29 08:27:51 UTC (rev 17319)
+++ projects/haf/trunk/ke-recv/debian/changelog	2009-01-29 10:44:19 UTC (rev 17320)
@@ -1,6 +1,7 @@
 ke-recv (3.8-1~unreleased) unstable; urgency=low
 
   * Remove unused service-launcher code. Fixes: NB#99635
+  * Create dot directories to the user's partition on mounting.
 
  -- Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>  Thu, 29 Jan 2009 09:10:17 +0200
 

Modified: projects/haf/trunk/ke-recv/src/osso-mmc-mount.sh
===================================================================
--- projects/haf/trunk/ke-recv/src/osso-mmc-mount.sh	2009-01-29 08:27:51 UTC (rev 17319)
+++ projects/haf/trunk/ke-recv/src/osso-mmc-mount.sh	2009-01-29 10:44:19 UTC (rev 17320)
@@ -45,8 +45,21 @@
   mkdir -p $MP
 fi
 
+
 mmc-mount $PDEV $MP
 RC=$?
+
+if [ $RC = 0 ]; then
+  # create some special directories for user's partition
+  if [ "x$MP" = "x/home/user/MyDocs" -a -w $MP ]; then
+    for d in .sounds .videos .documents .images .maps; do
+      mkdir -p $MP/$d
+    done
+  else
+    echo "$0: '$MP' is not writable"
+  fi
+fi
+
 #if [ $RC != 0 ]; then
 if false; then
 


More information about the maemo-commits mailing list