forked from hummypkg/webif
abc7d0655e
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1699 2a923420-c742-0410-a762-8d5b09965624
29 lines
371 B
Plaintext
Executable File
29 lines
371 B
Plaintext
Executable File
#!/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
|
|
|