From b9d92abc00c5680f4e15dc78b0c2b8248d2b553c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 23 Dec 2016 23:40:24 +0100 Subject: [PATCH] NIyWeb: fix display of imageinfo ... and disable online check; needs several fixes Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/477c394f293fafb6f2afe42f558a31b6308ae082 Author: vanhofen Date: 2016-12-23 (Fri, 23 Dec 2016) Origin message was: ------------------ - NIyWeb: fix display of imageinfo ... and disable online check; needs several fixes ------------------ This commit was generated by Migit --- data/y-web/Y_NI_About.yhtm | 18 +++++++++++------- data/y-web/scripts/Y_NI_Tools.sh | 11 ++++++----- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/data/y-web/Y_NI_About.yhtm b/data/y-web/Y_NI_About.yhtm index 7a592aa8f..4267b782e 100644 --- a/data/y-web/Y_NI_About.yhtm +++ b/data/y-web/Y_NI_About.yhtm @@ -69,7 +69,8 @@ jQuery(document).ready(function(){ Image:
Version:
- Commits:
+ Branch:
+ Commit:
Datum:
Ersteller:
@@ -77,28 +78,31 @@ jQuery(document).ready(function(){ {=ini-get:/.version;imagename=}

- NI: {=ini-get:/.version;origin-commit=}; - CST: {=ini-get:/.version;remote-commit=}
+ {=ini-get:/.version;branch=}
+ {=ini-get:/.version;commit=}

{=ini-get:/.version;creator=}
+ diff --git a/data/y-web/scripts/Y_NI_Tools.sh b/data/y-web/scripts/Y_NI_Tools.sh index cde554ffb..35296e119 100644 --- a/data/y-web/scripts/Y_NI_Tools.sh +++ b/data/y-web/scripts/Y_NI_Tools.sh @@ -139,13 +139,14 @@ case "$action" in ;; get_update_txt) version="n/a" - wget -O /tmp/NI_release.txt "http://neutrino-images.de/neutrino-images/release/release.txt" - test -e /tmp/NI_release.txt && version=$(cat /tmp/NI_release.txt | grep ".img" | cut -d" " -f2) - echo "version=${version// /}" > /tmp/NI_update.txt - rm -f /tmp/NI_release.txt + #FIXME align url to box specs + wget -O /tmp/release.txt "http://neutrino-images.de/neutrino-images/update.php" + test -e /tmp/release.txt && version=$(cat /tmp/release.txt | grep ".img" | cut -d" " -f2) + echo "version=${version// /}" > /tmp/update.txt + rm -f /tmp/release.txt ;; rm_update_txt) - rm -f /tmp/NI_update.txt + rm -f /tmp/update.txt ;; get_flash_info) MTPT=""