-rw-r--r-- | core/launcher/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 024f9cc..12c2a7c 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp | |||
@@ -64,49 +64,49 @@ void initCassiopeia() | |||
64 | /* | 64 | /* |
65 | if ( mount("/dev/ram0", "/", "ext2", MS_REMOUNT | MS_MGC_VAL, 0 ) ) { | 65 | if ( mount("/dev/ram0", "/", "ext2", MS_REMOUNT | MS_MGC_VAL, 0 ) ) { |
66 | perror("Remounting - / read/write"); | 66 | perror("Remounting - / read/write"); |
67 | } | 67 | } |
68 | */ | 68 | */ |
69 | if ( mount("none", "/tmp", "ramfs", 0, 0 ) ) { | 69 | if ( mount("none", "/tmp", "ramfs", 0, 0 ) ) { |
70 | perror("mounting ramfs /tmp"); | 70 | perror("mounting ramfs /tmp"); |
71 | } else { | 71 | } else { |
72 | fprintf( stderr, "mounted /tmp\n" ); | 72 | fprintf( stderr, "mounted /tmp\n" ); |
73 | } | 73 | } |
74 | if ( mount("none", "/home", "ramfs", 0, 0 ) ) { | 74 | if ( mount("none", "/home", "ramfs", 0, 0 ) ) { |
75 | perror("mounting ramfs /home"); | 75 | perror("mounting ramfs /home"); |
76 | } else { | 76 | } else { |
77 | fprintf( stderr, "mounted /home\n" ); | 77 | fprintf( stderr, "mounted /home\n" ); |
78 | } | 78 | } |
79 | if ( mount("none","/proc","proc",0,0) ) { | 79 | if ( mount("none","/proc","proc",0,0) ) { |
80 | perror("Mounting - /proc"); | 80 | perror("Mounting - /proc"); |
81 | } else { | 81 | } else { |
82 | fprintf( stderr, "mounted /proc\n" ); | 82 | fprintf( stderr, "mounted /proc\n" ); |
83 | } | 83 | } |
84 | if ( mount("none","/mnt","shm",0,0) ) { | 84 | if ( mount("none","/mnt","shm",0,0) ) { |
85 | perror("Mounting - shm"); | 85 | perror("Mounting - shm"); |
86 | } | 86 | } |
87 | setenv( "QTDIR", "/", 1 ); | 87 | setenv( "QTDIR", "/", 1 ); |
88 | setenv( "QPEDIR", "/", 1 ); | 88 | setenv( "OPIEDIR", "/", 1 ); |
89 | setenv( "HOME", "/home", 1 ); | 89 | setenv( "HOME", "/home", 1 ); |
90 | mkdir( "/home/Documents", 0755 ); | 90 | mkdir( "/home/Documents", 0755 ); |
91 | 91 | ||
92 | // set a reasonable starting date | 92 | // set a reasonable starting date |
93 | QDateTime dt( QDate( 2001, 3, 15 ) ); | 93 | QDateTime dt( QDate( 2001, 3, 15 ) ); |
94 | QDateTime now = QDateTime::currentDateTime(); | 94 | QDateTime now = QDateTime::currentDateTime(); |
95 | int change = now.secsTo( dt ); | 95 | int change = now.secsTo( dt ); |
96 | 96 | ||
97 | time_t t = ::time(0); | 97 | time_t t = ::time(0); |
98 | t += change; | 98 | t += change; |
99 | stime(&t); | 99 | stime(&t); |
100 | 100 | ||
101 | qInstallMsgHandler(ignoreMessage); | 101 | qInstallMsgHandler(ignoreMessage); |
102 | } | 102 | } |
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | #ifdef QPE_OWNAPM | 105 | #ifdef QPE_OWNAPM |
106 | #include <sys/ioctl.h> | 106 | #include <sys/ioctl.h> |
107 | #include <sys/types.h> | 107 | #include <sys/types.h> |
108 | #include <fcntl.h> | 108 | #include <fcntl.h> |
109 | #include <unistd.h> | 109 | #include <unistd.h> |
110 | #include <errno.h> | 110 | #include <errno.h> |
111 | #include <linux/ioctl.h> | 111 | #include <linux/ioctl.h> |
112 | #include <qpe/global.h> | 112 | #include <qpe/global.h> |