- const QString DAEMON_NAME = "jenirokd";
- const QString INIT_DIR = "/etc/init.d";
- const QString AUTOSTART_ENABLE = "update-rc.d jenirokd defaults 99";
- const QString AUTOSTART_DISABLE = "update-rc.d -f jenirokd remove";
+ const QString DAEMON_NAME = "jenirokd";
+ const QString INIT_DIR = "/etc/init.d";
+ const QString AUTOSTART_ENABLE = "update-rc.d jenirokd defaults 99";
+ const QString AUTOSTART_DISABLE = "update-rc.d -f jenirokd remove";
- QProcess proc;
-
- if(enabled)
- {
- proc.start(AUTOSTART_ENABLE);
- }
- else
- {
- proc.start(AUTOSTART_DISABLE);
- }
-
- proc.waitForStarted();
- proc.waitForFinished();
-
- if(proc.exitCode() != 0)
- {
- return false;
- }
-
- return true;
+ QProcess proc;
+
+ if(enabled)
+ {
+ proc.start(AUTOSTART_ENABLE);
+ }
+ else
+ {
+ proc.start(AUTOSTART_DISABLE);
+ }
+
+ proc.waitForStarted();
+ proc.waitForFinished();
+
+ if(proc.exitCode() != 0)
+ {
+ return false;
+ }
+
+ return true;