2012-04-08 23:26:38 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
2012-05-21 20:23:41 +00:00
|
|
|
source /mod/webif/lib/setup
|
2012-04-08 23:26:38 +00:00
|
|
|
require system.class
|
|
|
|
|
2013-02-09 22:46:15 +00:00
|
|
|
httpheader
|
2012-04-08 23:26:38 +00:00
|
|
|
|
|
|
|
set menupath "Settings->System->Internet Setting->Content Share"
|
|
|
|
set dbpath "/mnt/hd2/dms_cds.db"
|
|
|
|
|
|
|
|
if {[system param DMS_START_ON] || [system is_listening 9000]} {
|
|
|
|
puts "To reset the DLNA Database, disable <i>Content Sharing</i>"
|
|
|
|
puts " in the Humax menus at<br>"
|
|
|
|
puts "<span class=also style=\"padding-left: 5em\">$menupath</span><br>"
|
|
|
|
puts "and click the button again."
|
|
|
|
} elseif {![file exists $dbpath]} {
|
|
|
|
puts "The DLNA Database does not exist.<br>"
|
|
|
|
puts "(already reset?)"
|
|
|
|
} else {
|
|
|
|
file delete $dbpath
|
|
|
|
puts "The DLNA Database has been reset.<br>"
|
|
|
|
puts "You can now re-enable <i>Content Sharing</i> in the Humax menus."
|
|
|
|
puts "<br>"
|
|
|
|
puts "<span class=also style=\"padding-left: 5em\">$menupath</span><br>"
|
|
|
|
}
|
|
|
|
|