summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-03 13:35:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-03 13:35:55 +0200
commit06117cbaab3e8bf347fa59fe194210cf627e553a (patch)
treeed6679f38f85f2c2b376a06205009ae9e9f4d7c2 /vdr.c
parenta964a8d732e81f4b2518b356f41a4eea47c38f54 (diff)
downloadvdr-06117cbaab3e8bf347fa59fe194210cf627e553a.tar.gz
vdr-06117cbaab3e8bf347fa59fe194210cf627e553a.tar.bz2
Implemented option '--vfat'; replaced ':' with '.' in recording names
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index 8d86089f..4375ec77 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.214 2005/09/03 12:35:29 kls Exp $
+ * $Id: vdr.c 1.215 2005/09/03 13:21:32 kls Exp $
*/
#include <getopt.h>
@@ -131,6 +131,9 @@ int main(int argc, char *argv[])
#elif defined(REMOTE_RCU)
RcuDevice = RCU_DEVICE;
#endif
+#if defined(VFAT)
+ VfatFileSystem = true;
+#endif
cPluginManager PluginManager(DEFAULTPLUGINDIR);
int ExitCode = 0;
@@ -154,6 +157,7 @@ int main(int argc, char *argv[])
{ "shutdown", required_argument, NULL, 's' },
{ "terminal", required_argument, NULL, 't' },
{ "version", no_argument, NULL, 'V' },
+ { "vfat", no_argument, NULL, 'v' | 0x100 },
{ "video", required_argument, NULL, 'v' },
{ "watchdog", required_argument, NULL, 'w' },
{ NULL }
@@ -246,6 +250,9 @@ int main(int argc, char *argv[])
break;
case 'V': DisplayVersion = true;
break;
+ case 'v' | 0x100:
+ VfatFileSystem = true;
+ break;
case 'v': VideoDirectory = optarg;
while (optarg && *optarg && optarg[strlen(optarg) - 1] == '/')
optarg[strlen(optarg) - 1] = 0;
@@ -304,6 +311,8 @@ int main(int argc, char *argv[])
" -t TTY, --terminal=TTY controlling tty\n"
" -v DIR, --video=DIR use DIR as video directory (default: %s)\n"
" -V, --version print version information and exit\n"
+ " --vfat encode special characters in recording names to\n"
+ " avoid problems with VFAT file systems\n"
" -w SEC, --watchdog=SEC activate the watchdog timer with a timeout of SEC\n"
" seconds (default: %d); '0' disables the watchdog\n"
"\n",