forked from hummypkg/webif
88ada938d1
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@252 2a923420-c742-0410-a762-8d5b09965624
26 lines
421 B
Plaintext
Executable File
26 lines
421 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
if { [catch {set fd [open "/mod/mediatomb/config/mediatomb.html" r]} fid] } {
|
|
exit 0
|
|
}
|
|
set data [read $fd]
|
|
close $fd
|
|
regexp {URL=([^"]*)} $data match
|
|
set url [string range $match 4 [string length $match]]
|
|
|
|
puts "
|
|
<div style=\"float: left; padding-top: 5em\">
|
|
<center>
|
|
<a href=$url>
|
|
<img src=/img/mediatomb.png width=180>
|
|
</a>
|
|
<br>
|
|
<a href=$url>
|
|
<b>MediaTomb</b>
|
|
</a>
|
|
<br>
|
|
</center>
|
|
</div>
|
|
"
|
|
|