blob: 64271d4f6836db35a01cd48d1e671a2a120e6c26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# CONFIG BEGIN
. /etc/default/vdr
TEMPLATEURL=http://vdr.f-x.de
TEMPLATEDIR=$VDRCONFDIR/plugins/burn
TEXT="Vorlage (burn)"
# CONFIG END
cp $TEMPLATEDIR/menu-bg.png $TEMPLATEDIR/original.png
wget \
--mirror --no-directories --accept="zip" "$TEMPLATEURL" --directory-prefix="$TEMPLATEDIR/tmp"
find "$TEMPLATEDIR" \
-name "*.zip" -exec unzip -o -q -d "$TEMPLATEDIR" \{} \;
find "$TEMPLATEDIR" \( ! -name 'menu-b*.png' \) \
-name "*.png" -printf "\n$TEXT %f : cp -v \"$TEMPLATEDIR/%f\" \"$TEMPLATEDIR/menu-bg.png\";" \
> "$TEMPLATEDIR/reccmds.conf"
chown $VDRUSER.$VDRGROUP -R $VDRCONFDIR/plugins/burn
|