1 |
diff -Nur smeserver-mediatomb-1.0.old/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1 smeserver-mediatomb-1.0/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1 |
2 |
--- smeserver-mediatomb-1.0.old/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1 2019-01-24 20:18:51.115000000 -0500 |
3 |
+++ smeserver-mediatomb-1.0/root/etc/e-smith/templates/etc/mediatomb/config.xml/25autoscanDir1 2019-01-24 20:40:05.834000000 -0500 |
4 |
@@ -1,8 +1,20 @@ |
5 |
{ |
6 |
my $serverdir= ${'mediatomb'}{'serverdir'} || 'mediatomb'; |
7 |
+my $mode = ${'mediatomb'}{'mode'} || 'timed'; |
8 |
|
9 |
-$OUT .= '<directory location="/'.$serverdir.'" mode="timed" interval="3600" |
10 |
+if ( $mode eq 'inotify' ) { |
11 |
+ |
12 |
+ $OUT .= '<directory location="/'.$serverdir.'" mode="inotify" |
13 |
+ level="full" recursive="yes" hidden-files="no"/>'; |
14 |
+ } |
15 |
+elsif ( $mode eq 'disabled') { |
16 |
+ $OUT .= "<!-- base folder /$serverdir disabled set all your folders with web interface-->\n" |
17 |
+ } |
18 |
+else { |
19 |
+ $OUT .= '<directory location="/'.$serverdir.'" mode="timed" interval="3600" |
20 |
level="full" recursive="yes" hidden-files="no"/>'; |
21 |
|
22 |
+ } |
23 |
+ |
24 |
} |
25 |
|