Commit 1cbe6974 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

comments

parent 5f4bb7de
<?php <?php
/*
FILE NAME : update_software.php
DESCRIPTION: update software on nand flash
REVISION: 1.00
AUTHOR: Oleg Dzhimiev <oleg@elphel.com>
LICENSE: AGPL, see http://www.gnu.org/licenses/agpl.txt
Copyright (C) 2016 Elphel, Inc.
*/
# hardcoded # hardcoded
$UPDATE_DIR = "/var/volatile/html/update"; $UPDATE_DIR = "/var/volatile/html/update";
...@@ -54,7 +62,20 @@ function verify($v){ ...@@ -54,7 +62,20 @@ function verify($v){
$tmp = ""; $tmp = "";
foreach($UPDATE_LIST as $e){ foreach($UPDATE_LIST as $e){
if($e[0]==0){ if($e[0]==0){
$tmp .= "<li>${e[1]}</li>"; switch($e[1]){
case "boot.bin":
case "u-boot-dtb.img":
case "devicetree.dtb":
$comment = "(rarely updated)";
break;
case "uImage":
case "rootfs.ubi":
$comment = "(frequently updated)";
break;
default:
$comment = "";
}
$tmp .= "<li><b>${e[1]}</b> <span style='font-size:0.9em;'>${comment}</span></li>";
} }
} }
backup_note(); backup_note();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment