summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-08-16 09:18:52 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-08-16 09:18:52 +0200
commit57a95c6790fd080020c49c79557619fd129a66e0 (patch)
tree05878ebcc65837f792835ecc0afac13beb7474ad /vdr.c
parentfc19cf3527d42d88f428b6fa7a935c2dc7cfe781 (diff)
downloadvdr-57a95c6790fd080020c49c79557619fd129a66e0.tar.gz
vdr-57a95c6790fd080020c49c79557619fd129a66e0.tar.bz2
VDR now stops with result value 2 if one of the configuration files can't be read correctly at program startup
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/vdr.c b/vdr.c
index 16e8bdd4..c973e88b 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.162 2003/08/02 14:01:32 kls Exp $
+ * $Id: vdr.c 1.163 2003/08/16 09:15:28 kls Exp $
*/
#include <getopt.h>
@@ -341,17 +341,19 @@ int main(int argc, char *argv[])
cPlugin::SetConfigDirectory(ConfigDirectory);
- Setup.Load(AddDirectory(ConfigDirectory, "setup.conf"));
- Sources.Load(AddDirectory(ConfigDirectory, "sources.conf"), true);
- Diseqcs.Load(AddDirectory(ConfigDirectory, "diseqc.conf"), true);
- Channels.Load(AddDirectory(ConfigDirectory, "channels.conf"));
- Timers.Load(AddDirectory(ConfigDirectory, "timers.conf"));
- Commands.Load(AddDirectory(ConfigDirectory, "commands.conf"), true);
- RecordingCommands.Load(AddDirectory(ConfigDirectory, "reccmds.conf"), true);
- SVDRPhosts.Load(AddDirectory(ConfigDirectory, "svdrphosts.conf"), true);
- CaDefinitions.Load(AddDirectory(ConfigDirectory, "ca.conf"), true);
- Keys.Load(AddDirectory(ConfigDirectory, "remote.conf"));
- KeyMacros.Load(AddDirectory(ConfigDirectory, "keymacros.conf"), true);
+ if (!(Setup.Load(AddDirectory(ConfigDirectory, "setup.conf")) &&
+ Sources.Load(AddDirectory(ConfigDirectory, "sources.conf"), true, true) &&
+ Diseqcs.Load(AddDirectory(ConfigDirectory, "diseqc.conf"), true, true) &&
+ Channels.Load(AddDirectory(ConfigDirectory, "channels.conf"), false, true) &&
+ Timers.Load(AddDirectory(ConfigDirectory, "timers.conf")) &&
+ Commands.Load(AddDirectory(ConfigDirectory, "commands.conf"), true) &&
+ RecordingCommands.Load(AddDirectory(ConfigDirectory, "reccmds.conf"), true) &&
+ SVDRPhosts.Load(AddDirectory(ConfigDirectory, "svdrphosts.conf"), true) &&
+ CaDefinitions.Load(AddDirectory(ConfigDirectory, "ca.conf"), true) &&
+ Keys.Load(AddDirectory(ConfigDirectory, "remote.conf")) &&
+ KeyMacros.Load(AddDirectory(ConfigDirectory, "keymacros.conf"), true)
+ ))
+ return 2;
// DVB interfaces: