webif/var/mongoose/lib/bin/resetnew
hummypkg a505022d39 tweaks
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1708 2a923420-c742-0410-a762-8d5b09965624
2013-10-23 20:38:25 +00:00

26 lines
436 B
Plaintext
Executable File

#!/mod/bin/jimsh
source /mod/webif/lib/setup
require system.class ts.class
proc scan {dir} {
puts "Resetting unwatched count on $dir..."
file stat "$dir/" st
if {$st(dev) != $::rootdev} { return }
ts resetnew $dir
foreach entry [readdir -nocomplain $dir] {
if {[file isdirectory "$dir/$entry"]} {
scan "$dir/$entry"
}
}
}
set root [system mediaroot]
file stat "$root/" rootstat
set rootdev $rootstat(dev)
scan $root