diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-31 00:03:51 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-31 00:04:39 +0300 |
commit | 8b67cc99b2fce3e4ddf6eb65b8282010c251d8e7 (patch) | |
tree | 3f4c296a5a5794e649ce7f7f781c358b2593c80c | |
parent | 44708ee0d821bc7ac7232160fc42d4a99dbf7371 (diff) | |
download | vdradmin-am-8b67cc99b2fce3e4ddf6eb65b8282010c251d8e7.tar.gz vdradmin-am-8b67cc99b2fce3e4ddf6eb65b8282010c251d8e7.tar.bz2 |
Autodetect default for number of DVB cards from local system.
-rw-r--r-- | HISTORY | 1 | ||||
-rwxr-xr-x | vdradmind.pl | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -11,6 +11,7 @@ VDR-Portal: amair - Changed: Honor config logging options with --nofork (Ville Skyttä). - Changed: Specifying -L or -l turns logging on (Ville Skyttä). - Improved: Do not require pid dir when not running as daemon (Ville Skyttä). +- Improved: Autodetect default for number of DVB cards (Ville Skyttä). 2011-06-03: 3.6.8 - Updated: Dutch translation (Submitted by Roel Koelewijn). diff --git a/vdradmind.pl b/vdradmind.pl index 1977208..d8cd51b 100755 --- a/vdradmind.pl +++ b/vdradmind.pl @@ -149,7 +149,7 @@ $CONFIG{EPGIMAGES} = "$CONFIG{VIDEODIR}/epgimages"; $CONFIG{TEMPLATE} = "default"; $CONFIG{SKIN} = "default"; $CONFIG{LOGINPAGE} = 0; -$CONFIG{RECORDINGS} = 1; +{ my @a = </dev/dvb/adapter[0-9]>; $CONFIG{RECORDINGS} = scalar(@a) || 1; } $CONFIG{LANG} = ""; # |