-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
56 lines (47 loc) · 1.58 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
vdr-addon-avahi-linker
======================
common media dirs for avahi nfs-shares (using autofs) and local files
Set media directory an vdr recording directory in /etc/avahi-linker/default.cfg
```
Usage: avahi-linker [options]
Options:
-h, --help show this help message and exit
-v LOG_LEVEL, --loglevel=LOG_LEVEL
possible values for LOGLEVEL:
[DEBUG|INFO|WARNING|ERROR|CRITICAL]
-l LOGFILE, --log=LOGFILE
log file
```
Writing avahi-service files
Add the directories to your /etc/exports
Example for a vdr recording dir announcement:
/etc/avahi/services/vdr-rec.service
```
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Recordings on %h</name> ## Name
<service>
<type>_nfs._tcp</type>
<port>2049</port>
<txt-record>path=/srv/vdr/video</txt-record> ## path to shared Folder
<txt-record>subtype=vdr</txt-record> ## subtype
</service>
</service-group>
```
Example for a movie video dir announcement:
/etc/avahi/services/video-movies.service
```
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Movies on %h</name> ## Name
<service>
<type>_nfs._tcp</type>
<port>2049</port>
<txt-record>path=/srv/video/Filme</txt-record> ## path to shared Folder
<txt-record>subtype=video</txt-record> ## subtype
<txt-record>category=movies</txt-record> ## category
</service>
</service-group>
```