Tidying!
This commit is contained in:
parent
e0b4c9d5a3
commit
af48fdce9d
|
@ -60,10 +60,11 @@ function a20_env {
|
||||||
dtb="$1"
|
dtb="$1"
|
||||||
|
|
||||||
# Setup boot.cmd
|
# Setup boot.cmd
|
||||||
if grep -q btrfs /etc/fstab ; then
|
|
||||||
fstype=btrfs
|
|
||||||
else
|
|
||||||
fstype=ext4
|
fstype=ext4
|
||||||
|
if grep -q btrfs /etc/fstab; then
|
||||||
|
fstype=btrfs
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$command_line" ] ; then
|
if [ -n "$command_line" ] ; then
|
||||||
echo flash-kernel flash-kernel/linux_cmdline string "$command_line" | debconf-set-selections
|
echo flash-kernel flash-kernel/linux_cmdline string "$command_line" | debconf-set-selections
|
||||||
fi
|
fi
|
||||||
|
@ -119,10 +120,9 @@ function beaglebone_env {
|
||||||
bbb_version=$1
|
bbb_version=$1
|
||||||
|
|
||||||
# Setup uEnv.txt
|
# Setup uEnv.txt
|
||||||
|
fstype=ext4
|
||||||
if grep -q btrfs /etc/fstab ; then
|
if grep -q btrfs /etc/fstab ; then
|
||||||
fstype=btrfs
|
fstype=btrfs
|
||||||
else
|
|
||||||
fstype=ext4
|
|
||||||
fi
|
fi
|
||||||
if [ ! $bbb_version ]; then
|
if [ ! $bbb_version ]; then
|
||||||
kernelVersion=$(ls /usr/lib/*/am335x-boneblack.dtb | head -1 | cut -d/ -f4)
|
kernelVersion=$(ls /usr/lib/*/am335x-boneblack.dtb | head -1 | cut -d/ -f4)
|
||||||
|
|
Loading…
Reference in New Issue