blob: d3eca11101d7fd40068ebe184119cb38d324f1c9 (
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
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
|
#!/bin/sh
# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis)
# von Marc Wernecke - www.zulu-entertainment.de
# 07.03.2009
# vdrfonts
source ./../../x-vdr.conf
source ./../../setup.conf
source ./../../functions
WEB="http://andreas.vdr-developer.org/fonts/download/vdrsymbols-ttf-20080905.tgz"
VERSION="vdrsymbols-ttf-20080905"
VAR=`basename $WEB`
DIR=`pwd`
# install
function make_util() {
download_util
[ -d /usr/share/fonts/truetype/vdrsymbols ] && rm -rf /usr/share/fonts/truetype/vdrsymbols
if echo "$FILES/utilities/$VAR" | grep "bz2$" - &>/dev/null; then
if tar xjf "$FILES/utilities/$VAR" -C /usr/share/fonts/truetype; then
log "extrahiere $VAR"
return 0
fi
else
if tar xzf "$FILES/utilities/$VAR" -C /usr/share/fonts/truetype ; then
log "extrahiere $VAR"
return 0
fi
fi
log "ERROR - $VERSION konnte nicht erstellt werden"
}
# uninstall
function clean_util() {
[ -d /usr/share/fonts/truetype/vdrsymbols ] && rm -rf /usr/share/fonts/truetype/vdrsymbols
}
# test
function status_util() {
[ -d /usr/share/fonts/truetype/vdrsymbols ] && echo "2" && return 0
echo "0"
}
# start
# plugin commands
if [ $# \> 0 ]; then
cmd=$1
cmd_util
else
make_util
status_util
fi
exit 0
|