Atlas - quickfloppy.sh
Home / usr / quicktools Lines: 1 | Size: 1241 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1# SPDX-License-Identifier: GPL-3.0 2# Quick Floppy - Easy folder to floppy image converter 3# 4# Process: 5# 1. Turn each file from unix to dos 6# 2. Create a floppy image with the same name as the folder 7# 8# COPYRIGHT NOTICE 9# Copyright (C) 2025-2026 0x4248 and contributors 10# Redistribution and use in source and binary forms, with or without 11# modification, are permitted provided that the license is not changed. 12# 13# This software is free and open source. Licensed under the GNU general 14# public license version 3.0 as published by the Free Software Foundation. 15 16#prechecks 17 18echo "0x4248 QuickTools - QuickFloppy v1.0" 19echo "Copyright (C) 2025-2026 0x4248 and contributors" 20echo "===============================================" 21 22find "$1" -type f -exec unix2dos {} \; 23if [ -d "$1" ]; then 24 imgname="$(basename "$1").img" 25 echo "Creating floppy image: $imgname" 26 dd if=/dev/zero of="$imgname" bs=512 count=2880 27 echo "Formatting floppy image with FAT12 filesystem..." 28 /sbin/mkfs.msdos -F 12 -n "$(basename "$1")" "$imgname" 29 echo "Copying files to floppy image..." 30 cd "$1" 31 mcopy -i "../$imgname" -s * ::/ 32 cd .. 33 echo "$1 -> $imgname" 34 echo "Nothing else to complete." 35else 36 echo "Usage: $0 <folder>" 37fi[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.