#!/bin/bash
#
# This script lives in /var/hack. Run it once your slice file has
# been generated by fetch_one, to install program data on your TiVo.
# The script rsync's the file from the remote PC, so you will need
# to change the rsync line down below to reflect the IP address and
# path to your slice file.
#
# Written by Warren Toomey from scripts by Andrew Tridgell
#
cd /var/hack
echo Rsyncing output.slice
rsync -avz 10.10.2.2::tivo/var/hack/output.slice .
echo Running cleanup-tc.tcl
tivosh /tvlib/tcl/tv/cleanup-tc.tcl
sync
echo Dbloading output.slice .....
./dbload output.slice
echo Doing a reindex ....
./reindex
echo Doing a No Nag ...
./dbset /Setup LastSuccessCall 3999999999
./dbset /Setup LastCallStatus Succeeded      
echo Done
