⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makeiso.sh

📁 开源代码
💻 SH
字号:
#!/bin/sh# check to see if the correct tools are installedfor X in wc mkisofsdo	if [ "$(which $X)" = "" ]; then		echo "makeiso.sh error: $X is not in your path." >&2		exit 1	elif [ ! -x $(which $X) ]; then		echo "makeiso.sh error: $X is not executable." >&2		exit 1	fi done#check to see if memtest.bin is presentif [ ! -w memtest.bin ]; then 	echo "makeiso.sh error: cannot find memtest.bin, did you compile it?" >&2 	exit 1fi# enlarge the size of memtest.binSIZE=$(wc -c memtest.bin | awk '{print $1}')FILL=$((1474560 - $SIZE))dd if=/dev/zero of=fill.tmp bs=$FILL count=1cat memtest.bin fill.tmp > memtest.imgrm -f fill.tmpecho "Generating iso image ..."mkdir "cd"mkdir "cd/boot"mv memtest.img cd/bootcd cd# Create the cd.READMEecho -e "There is nothing to do here\r\r\nMemtest86+ is located on the bootsector of this CD\r\r\n" > README.TXTecho -e "Just boot from this CD and Memtest86+ will launch" >> README.TXTmkisofs -A "MKISOFS 1.1.2" -p "Memtest86+ 2.11" -publisher "Samuel D. <sdemeule@memtest.org>" -b boot/memtest.img -c boot/boot.catalog -V "MT201" -o memtest.iso .mv memtest.iso ../mt211.isocd ..rm -rf cdecho "Done! Memtest86+ ISO is mt211.iso"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -