Beim Start einige benoetigte Ordner erstellen.

/data/save und /data/secure/save werden in jedem fall benoetigt.
/data/mail wird fuer das ordnungsgemaesse funktionieren vom Mailer
benoetigt.

Change-Id: I5d1a98fe89f02a56c5f3d52d6e8a1b55865a682b
diff --git a/secure/master/misc.c b/secure/master/misc.c
index d8a1f39..5a29276 100644
--- a/secure/master/misc.c
+++ b/secure/master/misc.c
@@ -10,6 +10,7 @@
 #include "/sys/lpctypes.h"
 #include "/sys/object_info.h"
 #include "/sys/interactive_info.h"
+#include "/sys/files.h"
 
 #include "/secure/master.h"
 #include "/mail/post.h"
@@ -773,3 +774,31 @@
   rename("log/call_out_stop","log/call_out_stop.old");
 }
 
+protected void CreateDataDirectories()
+{
+  if(file_size("/"LIBDATADIR)==FSIZE_NOFILE)
+  {
+    mkdir("/"LIBDATADIR);
+  }
+
+  if(file_size(SAVEPATH)==FSIZE_NOFILE)
+  {
+    mkdir(SAVEPATH);
+    // Die Ordner von a bis z erstellen
+    foreach(int n : 'a'..'z')
+    {
+      mkdir(sprintf(SAVEPATH+"%c",n));
+    }
+  }
+
+  if(file_size(SECURESAVEPATH)==FSIZE_NOFILE)
+  {
+    mkdir("/"LIBDATADIR"/"SECUREDIR);
+    mkdir(SECURESAVEPATH);
+    // Die Ordner von a bis z erstellen
+    foreach(int n : 'a'..'z')
+    {
+      mkdir(sprintf(SECURESAVEPATH+"%c",n));
+    }
+  }
+}