declare FORMAT=""
declare DEVICE=""
+declare SKIP=0
declare -i OLD_DD=0
# Binaires array for fusing
mkfs.ext4 -q ${PART19} -L $RESERVED2 -F
}
+function skip_resize () {
+ if [ "${SKIP}" == "0" ]; then
+ return 0;
+ fi
+
+ if [ ! -d mnt_tmp ] ; then
+ mkdir mnt_tmp
+ fi
+
+ mount -t ext4 ${DEVICE}3 ./mnt_tmp
+ touch ./mnt_tmp/var/.resizefs_done
+
+ echo "Rootfs resize will be skipped..."
+ sync
+ umount ./mnt_tmp
+ rmdir mnt_tmp
+}
+
function show_usage () {
echo "- Usage:"
echo " sudo ./sd_fusing*.sh -d <device> [-b <path> <path> ..] [--format] [--update [b] ]"
function print_logo () {
echo ""
- echo "Raspberry Pi4 downloader, version 1.0.9"
+ echo "Raspberry Pi4 downloader, version 1.0.10"
echo ""
}
fi
shift
;;
+ --skip-resize)
+ SKIP=1
+ shift
+ ;;
*)
if [ $binary_option == 1 ];then
add_fusing_binary $option
check_partition_format
check_ddversion
fuse_image
+skip_resize