From 3559a430ab474cef3580a42754814656f595469e Mon Sep 17 00:00:00 2001 From: hummypkg Date: Thu, 25 Aug 2011 20:30:13 +0000 Subject: [PATCH] add epg -day and rsv commit when necessary git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@305 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/cgi-bin/restart.jim | 6 ++++-- var/mongoose/lib/epg.class | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/var/mongoose/cgi-bin/restart.jim b/var/mongoose/cgi-bin/restart.jim index b3e1f96..4b0748b 100755 --- a/var/mongoose/cgi-bin/restart.jim +++ b/var/mongoose/cgi-bin/restart.jim @@ -19,8 +19,10 @@ if {[cgi_get now] eq "yes"} { file delete /tmp/.restartpending header -# Commit pending reservations. -rsv commit +# Commit pending reservations on older mod versions. +if {![file exists /sbin/rsvsync] && ![file exists /mod/boot/rsvsync]} { + rsv commit +} puts { diff --git a/var/mongoose/lib/epg.class b/var/mongoose/lib/epg.class index a9b16b1..99e582b 100644 --- a/var/mongoose/lib/epg.class +++ b/var/mongoose/lib/epg.class @@ -291,6 +291,7 @@ proc {epg exec} {mode args} { -service { lappend cmd -S $args($arg) } -event { lappend cmd -E $args($arg) } -time { lappend cmd -@ $args($arg) } + -day { lappend cmd -/ $args($arg) } -extra { set extra $args($arg) } default { error "Invalid option, $arg" } }