#!/mod/bin/jimsh

source /mod/var/mongoose/lib/setup
require system.class

if {![file exists /mod/sbin/transmission-daemon]} { exit 0 }
if {![system is_listening 9091]} { exit 0 }

set url "/cgi-bin/transmission.jim"

puts "
<div style=\"float: left; padding-top: 5em\">
	<center>
	<a href=$url>
	<img border=0 src=/img/transmission.png>
	</a>
	<br>
	<a href=$url>
	<b>Transmission</b>
	</a>
	<br>
	</center>
</div>
"

