#!/bin/bash

cronfile='/var/www/html/dvr/config/cronjobs'
crontab -l > $cronfile
chmod 777 $cronfile
#;2,890;2,172;2,1083;2,533;2,95;2,1169;2,1209
#PUT SPECIAL 890 BACK BEFORE 26/12 6:35AM
#wget -q -O - 'http://127.0.0.1/epg/epg_update.php?dvr=0&r=2,4&bias=0&epg=2,876;2,522;2,792;2,791;2,784;2,115;2,788;2,689;2,1205'
#wget -q -O - 'http://127.0.0.1/epg/epg_update.php?dvr=1&r=2,4&bias=11&epg=2,791'
#wget -q -O - 'http://192.168.1.229/epg/epg_update_v2.php?dvr=0&r=2,6&bias=0&epg=2,172;2,522;2,6;2,115;2,1019;2,1206;2,1207;2,1208;2,888;5,5500;5,1209;5,1207'
wget -q -O - 'http://192.168.1.229/epg/epg_update_v2.php?dvr=0&r=2,6&bias=0&epg=5,115;5,1209;5,1206;5,1208;5,172'
crontab $cronfile
rm $cronfile