📄 genliso
字号:
#!/bin/sh## Generate a legacy floppy emulation ISO boot image## genliso foo.liso foo.zlilo## the ISO image is the first argument so that a list of .zlilo images# to include can be specified#case $0 in*genliso) ;;*genfdimg) genfdimg=1 ;;esaccase $# in0|1) echo Usage: $0 foo.liso foo.zlilo ... exit 1 ;;esaccase "`mtools -V`" inMtools\ version\ 3.9.9*|Mtools\ version\ 4.*) ;;*) echo Mtools version 3.9.9 or later is required exit 1 ;;esacout=$1shiftdir=bin/liso.dirmkdir -p $dircase "$genfdimg" in1) img=$out ;;*) img=$dir/boot.img ;;esacmformat -f 1440 -C -i $img ::cfg=bin/syslinux.cfgcat > $cfg <<EOF# These default options can be changed in the genliso scriptSAY Etherboot ISO boot image generated by genlisoTIMEOUT 3EOFfirst=for fdo if [ ! -r $f ] then echo $f does not exist, skipping 1>&2 continue fi # give Etherboot image a suffix that won't be mangled g=$(basename $f zlilo)zli case "$first" in "") echo DEFAULT $g ;; esac first=$g echo LABEL $g echo "" KERNEL $g mcopy -m -i $img $f ::$gdone >> $cfgmcopy -i $img $cfg ::syslinux.cfgif ! syslinux $imgthen exit 1ficase "$genfdimg" in1) ;;*) mkisofs -o $out -c boot.cat -b boot.img $dir ;;esacrm -fr $dir
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -