#!/bin/bash
FILE="/etc/updates/03-post.done"
BKPDIR=/media/backup/config/0.4.3

touch $FILE
mkdir $BKPDIR

cp /etc/vdr/sysconfig $BKPDIR
cp /etc/vdr/setup.conf $BKPDIR
cp /etc/vdr/plugins/setup/vdr-setup.xml $BKPDIR
cp /etc/vdradmin/vdradmind.conf $BKPDIR

#/tmp/easyvdr-configtool.sh r
depmod -ae >> $FILE
date >> $FILE


rm -f  /_config/pre-update.sh >/dev/null 2>&1
rm -f  /_config/post-update.sh >/dev/null 2>&1
rm -r  /_config/online-updates/_config >/dev/null 2>&1

echo "easyVDR Update fertiggestellt"

startvdr
sleep 20
/usr/bin/svdrpsend.pl mesg !! Update fertig - Reboot in 30 Sekunden !!

sleep 5

echo haallleluuuiyyyaaaaaaaaaaa !



#Immer:
chmod 777 /tmp

reboot






