dir2img
来自「SLAX/FanX制作livecd的完全脚本」· 代码 · 共 25 行
TXT
25 行
#!/bin/bash# convert directory tree into IMG compressed file# which can be used as a LiveCD module## Author: Tomas Matejicek <http://www.linux-live.org>#if [ -a ./liblinuxlive ]; then . ./liblinuxliveelse . /usr/lib/liblinuxlive || exit 1fiif [ ! -d "$1" -o "$2" = "" ]; then echo echo "Convert directory tree into IMG compressed module" echo "usage: $0 source_directory output_file.img [virtual_directory_tree]" exit 1fiif [ "$3" = "" ]; then VIRTUALROOT="/"; else VIRTUALROOT="$3"; fimkciso "$1" "$2" "$VIRTUALROOT"if [ $? != 0 ]; then echo "error building compressed image"; exit 1; fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?