diff options
| author | root <root@elwms02.(none)> | 2010-04-06 16:13:08 +0200 |
|---|---|---|
| committer | root <root@elwms02.(none)> | 2010-04-06 16:13:08 +0200 |
| commit | 0e7005fcc7483c01aa102fbea358c5ac65a48d62 (patch) | |
| tree | 11517ce0d3d2977c6732b3aa583b0008083e0bd3 /plugins/channellists | |
| download | x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.gz x-vdr-0e7005fcc7483c01aa102fbea358c5ac65a48d62.tar.bz2 | |
hello world
Diffstat (limited to 'plugins/channellists')
| -rw-r--r-- | plugins/channellists/plugin.sh | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/plugins/channellists/plugin.sh b/plugins/channellists/plugin.sh new file mode 100644 index 0000000..e1fb2cf --- /dev/null +++ b/plugins/channellists/plugin.sh @@ -0,0 +1,59 @@ +#!/bin/sh + +# x-vdr (Installations-Skript fuer einen VDR mit Debian als Basis) +# von Marc Wernecke - www.zulu-entertainment.de +# 20.02.2008 +# +# vdr-channellists + +# defaults +source ./../../x-vdr.conf +source ./../../setup.conf +source ./../../functions +WEB="http://www.zulu-entertainment.de/files/vdr-channellists/vdr-channellists-0.0.4.tgz" +VERSION="channellists-0.0.4" +LINK="channellists" + +VAR=`basename $WEB` +DIR=`pwd` + +# plugin entfernen +function clean_plugin() { + cd $SOURCEDIR/VDR/PLUGINS/src + rm -rf $LINK* + rm -f $VDRLIBDIR/libvdr-$LINK* + log "cleaning $LINK" +} + +# plugin installieren +function install_plugin() { + download_plugin + extract_plugin + cd $SOURCEDIR/VDR/PLUGINS/src + rm -f $LINK + ln -vfs $VERSION $LINK + patch_plugin + + ## plugin specials - start ## + if [ -d $DIR/channellists ]; then + cp -rf $DIR/channellists $VDRCONFDIR/plugins + chown -R $VDRUSER:$VDRGROUP $VDRCONFDIR/plugins/channellists + fi + if [ -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/scripts/channellists-update.sh ]; then + cp -f $SOURCEDIR/VDR/PLUGINS/src/$LINK/scripts/channellists-update.sh $VDRSCRIPTDIR + chown $VDRUSER:$VDRGROUP $VDRSCRIPTDIR/channellists-update.sh + chmod 0744 $VDRSCRIPTDIR/channellists-update.sh + fi + ## plugin specials - ende ## +} + +# plugin commands +if [ $# \> 0 ]; then + cmd=$1 + cmd_plugin +else + install_plugin + log "install-plugin fuer $VERSION ist fertig" +fi + +exit 0 |
