Refactored function echo_partition_name

This commit is contained in:
2020-05-15 12:25:44 +02:00
parent af6e17b4c5
commit 67532d60cb
3 changed files with 7 additions and 7 deletions

View File

@@ -14,8 +14,8 @@ error
root_mount_path="/mnt/raspbian"
boot_mount_path="/mnt/raspbian/boot"
root_partition_path=$(echo_partition_name $device_path "2")
boot_partition_path=$(echo_partition_name $device_path "1")
root_partition_path=$(echo_partition_name "2")
boot_partition_path=$(echo_partition_name "1")
info "Mount partitions..."
mount -o rw "$boot_partition_path" "$boot_mount_path" ||