#!/mod/bin/jimsh source /mod/webif/lib/setup require system.class lassign [system diskspace] size used perc free fperc set dsindex $($perc * 25 / 100 + 1) if {$dsindex > 25} { set dsindex 25 } set dsfile [format "%02d" $dsindex] # The HD model only has the USB images which are blue. I prefer the green # one so use those if available. if {[file exists /opt/share/images/blue/345_2_14_ST_HDD_01.png]} { set prefix 345_2_14_ST_HDD } else { set prefix 345_1_27_ST_USB } puts "
Total space: $size
Used: $used ($perc%)
Free: $free ($fperc%)
"