summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/fixit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/fixit.h b/noncore/apps/opie-console/fixit.h
index 501914e..6a8a101 100644
--- a/noncore/apps/opie-console/fixit.h
+++ b/noncore/apps/opie-console/fixit.h
@@ -15,24 +15,25 @@
15class FixIt { 15class FixIt {
16public: 16public:
17 FixIt(); 17 FixIt();
18 ~FixIt(); 18 ~FixIt();
19 void fixIt(); 19 void fixIt();
20 /* no real interested in implementing it */ 20 /* no real interested in implementing it */
21 void breakIt() { 21 void breakIt() {
22 22
23 }; 23 };
24 char* m_file; 24 char* m_file;
25}; 25};
26 26
27#ifdef FSCKED_DISTRI
27FixIt::FixIt() { 28FixIt::FixIt() {
28 /* the new inittab */ 29 /* the new inittab */
29 m_file = "#\n# /etc/inittab" 30 m_file = "#\n# /etc/inittab"
30"#" 31"#"
31"" 32""
32"# 0 - halt (Do NOT set initdefault to this)" 33"# 0 - halt (Do NOT set initdefault to this)"
33"# 1 - Single user mode" 34"# 1 - Single user mode"
34"# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)" 35"# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)"
35"# 3 - Full multiuser mode" 36"# 3 - Full multiuser mode"
36"# 4 - JavaVM(Intent) developer mode" 37"# 4 - JavaVM(Intent) developer mode"
37"# 5 - JavaVM(Intent)" 38"# 5 - JavaVM(Intent)"
38"# 6 - reboot (Do NOT set initdefault to this)" 39"# 6 - reboot (Do NOT set initdefault to this)"
@@ -75,14 +76,15 @@ FixIt::~FixIt() {
75 * we've to stop it from that and then do kill(SIGHUP,1); 76 * we've to stop it from that and then do kill(SIGHUP,1);
76 */ 77 */
77void FixIt::fixIt() { 78void FixIt::fixIt() {
78 ::rename("/etc/inittab", QPEApplication::qpeDir() + "/etc/inittab" ); 79 ::rename("/etc/inittab", QPEApplication::qpeDir() + "/etc/inittab" );
79 QFile file( "/etc/inittab" ); 80 QFile file( "/etc/inittab" );
80 if ( file.open(IO_WriteOnly | IO_Raw ) ) { 81 if ( file.open(IO_WriteOnly | IO_Raw ) ) {
81 file.writeBlock(m_file,strlen(m_file) ); 82 file.writeBlock(m_file,strlen(m_file) );
82 } 83 }
83 file.close(); 84 file.close();
84 ::kill( SIGHUP, 1 ); 85 ::kill( SIGHUP, 1 );
85} 86}
86 87
88#endif
87 89
88#endif 90#endif