-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdestlink.conf.5
67 lines (66 loc) · 1.81 KB
/
destlink.conf.5
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
56
57
58
59
60
61
62
63
64
65
66
67
.\" Automatically generated by Pandoc 2.14.0.3
.\"
.TH "DESTLINK.CONF" "5" "July 2021" "destlink-1.0" ""
.hy
.SS NAME
.PP
destlink.conf - destlink configuration file
.SS SYNOPSIS
.PP
\f[B]/etc/kanrisha.d/available/destlink/destlink.conf\f[R]
.SS DESCRIPTION
.PP
The \f[I]destlink.conf\f[R] file is read by destlink on service start
and specified every destination with interface name and path on the
filesystem.
It is executed by bash, so theoretically, all bash code could reside
within this file to allow for very fine-grained and customized
configuration of destinations based on current system state.
.PD 0
.P
.PD
By default, the file sets a $USERNAME variable which specifies the
username of the user with uid 1000.
This can be used on single-user systems to fetch the home directory,
fuse(4) mountpoints, etc..
.PD 0
.P
.PD
The actual destinations are specified as one variable per destination,
with their contents following the format \f[C]scope/name:path\f[R].
.PD 0
.P
.PD
Valid scopes are system and user.
In this implementation, scopes are arbitrary, but this shouldn\[cq]t be
counted on.
The path MUST start with /, relative paths are NOT ALLOWED and could
even pose a security risk on some systems.
.PD 0
.P
.PD
There must be a variable called \f[B]MOUNTS\f[R].
This variable provides a space-separated list of destination variable
names.
.SS FILES
.PP
\f[B]${PREFIX}/etc/kanrisha.d/available/destlink/destlink.conf\f[R]
.SS EXAMPLES
.PP
These are a few example lines that might be present in a typical
destlink.conf file
.IP
.nf
\f[C]
HOME=\[dq]user/home:/home/tux\[dq]
ROOTHOME=\[dq]system/roothome:/root\[dq]
WALLPAPERDIR=\[dq]system/wallpapers:/usr/share/wallpapers\[dq]
MOUNTS=\[dq]HOME ROOTHOME WALLPAPERDIR\[dq]
\f[R]
.fi
.SS SEE ALSO
.PP
destlink(8)
.SS AUTHOR
.PP
Written by Emily Lucy Ishikawa, < elishikawa\[at]jagudev.net >.