From af48fdce9ded873c111eb9c463639064ab6382f1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 30 May 2017 17:53:59 +0100 Subject: [PATCH] Tidying! --- src/freedombone-image-hardware-setup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/freedombone-image-hardware-setup b/src/freedombone-image-hardware-setup index b48445a8..0878bcdd 100755 --- a/src/freedombone-image-hardware-setup +++ b/src/freedombone-image-hardware-setup @@ -60,10 +60,11 @@ function a20_env { dtb="$1" # Setup boot.cmd - if grep -q btrfs /etc/fstab ; then + fstype=ext4 + if grep -q btrfs /etc/fstab; then fstype=btrfs - else - fstype=ext4 + fi + if [ -n "$command_line" ] ; then echo flash-kernel flash-kernel/linux_cmdline string "$command_line" | debconf-set-selections fi @@ -119,10 +120,9 @@ function beaglebone_env { bbb_version=$1 # Setup uEnv.txt + fstype=ext4 if grep -q btrfs /etc/fstab ; then fstype=btrfs - else - fstype=ext4 fi if [ ! $bbb_version ]; then kernelVersion=$(ls /usr/lib/*/am335x-boneblack.dtb | head -1 | cut -d/ -f4)