forked from hummypkg/webif
3d0152e475
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@894 2a923420-c742-0410-a762-8d5b09965624
28 lines
846 B
Plaintext
Executable File
28 lines
846 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
source /mod/var/mongoose/lib/setup
|
|
require system.class
|
|
|
|
puts "Content-Type: text/html"
|
|
puts ""
|
|
|
|
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>"
|
|
}
|
|
|