- yweb: get version-info from http://git.coolstreamtech.de

This commit is contained in:
svenhoefer
2012-07-25 18:09:49 +02:00
parent 596b64b410
commit 84e94ad4ca
3 changed files with 5 additions and 10 deletions

View File

@@ -4,11 +4,7 @@
//<![CDATA[
function check_updates()
{
{=if-not-equal:{=global-var-get:boxtype=}~coolstream~
loadSyncURL("/control/exec?Y_Tools&get_update_version_dbox");
~
loadSyncURL("/control/exec?Y_Tools&get_update_version_coolstream");
=}
loadSyncURL("/control/exec?Y_Tools&get_update_version");
location.reload();
}
//]]>
@@ -21,7 +17,7 @@ function check_updates()
<div class="work_box_body">
<table border="0" cellpadding="2" cellspacing="4">
<tr>
<td valign="top">
<td valign="top" width="30%">
<b>{=L:info.your_version=}</b>
<p>
{=ini-get:Y_Version.txt;version=}<br/>
@@ -30,7 +26,7 @@ function check_updates()
{=ini-get:Y_Version.txt;info=}<br/>
</p>
</td>
<td valign="top">
<td valign="top" width="30%">
<b>{=L:info.actual_version=}</b>
<p>
{=ini-get:/tmp/version.txt;version=}<br/>

View File

@@ -1,4 +1,4 @@
version=2.8.0.26
version=2.8.0.27
date=25.07.2012
type=Release
info=Port Coolstream

View File

@@ -548,8 +548,7 @@ case "$1" in
fbshot) shift 1; do_fbshot $* ;;
fbshot_clear) do_fbshot_clear ;;
tvshot_clear) rm -f /tmp/screenshot.png ;;
get_update_version_dbox) wget -O /tmp/version.txt "http://www.yjogol.com/download/Y_Version.txt" ;;
get_update_version_coolstream) wget -O /tmp/version.txt "http://www.yjogol.com/download/coolstream/Y_Version.txt" ;;
get_update_version) wget -O /tmp/version.txt "http://git.coolstreamtech.de/?p=cst-public-gui-neutrino.git;a=blob_plain;f=src/nhttpd/web/Y_Version.txt" ;;
settings_backup_restore) shift 1; do_settings_backup_restore $* ;;
exec_cmd) shift 1; $* ;;
automount_list) shift 1; do_automount_list $* ;;