From 55aad04004adca27b4848ba28899ff5f530ef681 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sat, 12 Jan 2019 13:02:32 +0000
Subject: [PATCH] Tidying

---
 src/freedombone-image-hardware-setup | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/freedombone-image-hardware-setup b/src/freedombone-image-hardware-setup
index 336fe3360..f294440a7 100755
--- a/src/freedombone-image-hardware-setup
+++ b/src/freedombone-image-hardware-setup
@@ -176,6 +176,11 @@ arm_setup_boot() {
                    arm_boot_start='usb start; '
                fi
                ;;
+        "sun"*) { echo "rtc_sunxi";
+                  echo "vfat"; } >> /etc/initramfs-tools/modules
+                ;;
+        "rock"*) echo "vfat" >> /etc/initramfs-tools/modules
+                 ;;
     esac
 
     case "$dtb" in
@@ -254,17 +259,6 @@ EOF
         cp /usr/lib/linux-image-*-armmp/* /boot/dtbs
     fi
 
-
-    # extra boot modules
-    case "$dtb" in
-        "sun"*)
-            { echo "rtc_sunxi";
-              echo "vfat"; } >> /etc/initramfs-tools/modules
-            ;;
-        "rock"*) echo "vfat" >> /etc/initramfs-tools/modules
-              ;;
-    esac
-
     if [ "$arm_flash_name" ]; then
         case "$arm_flash_name" in
             "TI "*)
-- 
GitLab