blob: 50fc16e3c6e32ef43994f3a3bde1b7a247262519 (
plain) (
blame)
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
|
#!/bin/sh
#
# Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
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
|