summaryrefslogtreecommitdiff
path: root/graphics/telak/files/install-user
blob: 8110b67ab02dee9d5ed3724a4c29cfc1f49b58e8 (plain)
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
#!/bin/sh
#
# Emanuel Haupt <ehaupt@critical.ch>

writeconf()
{
cat << "EOF" > $HOME/.telak/telakrc
# telakrc - see telak(1) for more config options

[example]
url = http://www.critical.ch/telak/d-mon.gif
x = 15
y = 15

EOF
}

if [ ! -d $HOME/.telak/cache ]; then
	mkdir -p $HOME/.telak/cache
	if [ ! -f $HOME/.telak/telakrc ]; then
		writeconf
		echo "Example config successfully installed under $HOME/.telak/"
	else
		echo "$HOME/.telak/telakrc does already exist."
	fi
else
	echo "$HOME/.telak does already exist."
fi