diff --git a/CONTROL/control b/CONTROL/control
index 4cadc9b..bbfcacb 100644
--- a/CONTROL/control
+++ b/CONTROL/control
@@ -1,7 +1,7 @@
Package: webif
Priority: optional
Section: web
-Version: 1.0.6-9
+Version: 1.0.6-10
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons(>=1.1.4),mongoose(>=3.0-9),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73-1),jim-cgi(>=0.7),jim-binary,service-control(>=1.2),busybox(>=1.20.2-1),lsof,epg(>=1.0.13),hmt(>=1.1.14),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.2.3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6)
diff --git a/var/mongoose/html/sched/cleanup.jim b/var/mongoose/html/sched/cleanup.jim
new file mode 100755
index 0000000..6eb62f6
--- /dev/null
+++ b/var/mongoose/html/sched/cleanup.jim
@@ -0,0 +1,28 @@
+#!/mod/bin/jimsh
+
+source /mod/webif/lib/setup
+require rsv.class
+
+header
+
+set events [rsv list]
+set n [clock seconds]
+foreach event $events {
+
+ set s [$event get nsttime]
+ set d [$event get nduration]
+ set e $($s + $d)
+
+ if {$n - $e > 7200 && [$event get ersvtype] <= 3} {
+ $event clear_ulslot
+ $event set_delete
+ $event insert
+
+ system restartpending
+
+ }
+
+}
+
+footer
+
diff --git a/var/mongoose/html/sched/sched.jim b/var/mongoose/html/sched/sched.jim
index 67c1341..8edad89 100755
--- a/var/mongoose/html/sched/sched.jim
+++ b/var/mongoose/html/sched/sched.jim
@@ -108,6 +108,7 @@ proc eventrow {event {table TBL_RESERVATION} {pending 0}} {
--- -- --- ---- --:--
(Last: $ds)"
puts "