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:
parent
88026872d9
commit
3312a76cc6
@ -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} {} {
|
||||
|
Loading…
Reference in New Issue
Block a user