dynamic dustbin

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@661 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-01-13 23:28:48 +00:00
parent 88026872d9
commit 3312a76cc6

View File

@ -51,11 +51,12 @@ proc {system mediaroot} {} {
}
proc {system dustbin} {} {
switch [system model] {
HDR { return "/media/My Video/_dustbin" }
HD { return "/media/drive1/Video/_dustbin" }
set dustbin "_dustbin"
if {![catch {set fd [open "/mod/boot/dustbin.name" r]}]} {
set dustbin [lindex [split [read $fd] "\n"] 0]
$fd close
}
return ""
return "[system mediaroot]/$dustbin"
}
proc {system diskspace} {} {