differentiate sd card images
authorMoritz Warning <moritzwarning@web.de>
Thu, 30 Jan 2020 01:03:41 +0000 (02:03 +0100)
committerMoritz Warning <moritzwarning@web.de>
Thu, 30 Jan 2020 01:13:46 +0000 (02:13 +0100)
www/index.html
www/index.js

index ee28c6565b1b0ac3d8f5f2f3c824aec02336ba3b..046d26bd78b795b25670c4a37ef20ad71aa17680 100644 (file)
@@ -49,6 +49,7 @@
                                <a id="kernel-image" class="download-link" href="#"><span></span>KERNEL</a>
                                <a id="rootfs-image" class="download-link" href="#"><span></span>ROOTFS</a>
                                <a id="tftp-image" class="download-link" href="#"><span></span>TFTP</a>
+                               <a id="sdcard-image" class="download-link" href="#"><span></span>SDCARD</a>
                        </div>
 
                        <div>
@@ -57,6 +58,7 @@
                                <span id="kernel-help" class="tr-kernel-help">Linux kernel as a separate image.</span>
                                <span id="rootfs-help" class="tr-rootfs-help">Root file system as a separate image.</span>
                                <span id="tftp-help" class="tr-tftp-help">Image that can be applied using the tftp meachnism of the boot loader</span>
+                               <span id="sdcard-help" class="tr-sdcard-help">Image that is meant to be flashed on an SD-Card.</span>
                        </div>
                </div>
        </div>
index 57365abfcab587b50aea54cf00b437d121ca8523..d9e500684c17dceb35f41622c474f167d40fa96d 100644 (file)
@@ -167,12 +167,12 @@ function $(id) {
 }
 
 function extractImageType(name) {
-  var m = /-(sysupgrade|factory|rootfs|kernel|tftp)[-.]/.exec(name);
+  var m = /-(sysupgrade|factory|rootfs|kernel|tftp|sdcard)[-.]/.exec(name);
   return m ? m[1] : 'factory';
 }
 
 function updateImages(dllink, model, target, release, commit, images) {
-  var types = ['sysupgrade', 'factory', 'rootfs', 'kernel', 'tftp'];
+  var types = ['sysupgrade', 'factory', 'rootfs', 'kernel', 'tftp', 'sdcard'];
 
   function hideLinks() {
     types.forEach(function(type) {