moduse
来自「SLAX/FanX制作livecd的完全脚本」· 代码 · 共 44 行
TXT
44 行
#!/bin/bash# Use module while running LiveCD - include it into directory structure on the fly# Author: Tomas Matejicek <http://www.linux-live.org>#if [ "$1" = "" ]; then echo echo "Use module on the fly while running Live CD" echo "Usage: $0 module.img" exitfiif [ -a ./liblinuxlive ]; then . ./liblinuxliveelse . /usr/lib/liblinuxlive || exit 1fiIMGRO=/mnt/livecd/imgro/IMGRW=/mnt/livecd/imgrw/if [ ! -a "$IMGRO" -o ! -a "$IMGRW" ]; then echo "Error: You can use modules only while running a Live CD" exit 1fiMODULE="`basename $1`"INSORDER=/tmp/moduse$$rm -f "$INSORDER"mount_img "$1" "$IMGRO" "$INSORDER" -nIMG="`cat $INSORDER`"IMG=$IMGRW/${IMG:${#IMGRO}}if [ -x "$IMG/preinsert" ]; then "$IMG/preinsert"; fimake_links "$IMG/data" "/" ""if [ -x "$IMG/postinsert" ]; then "$IMG/postinsert"; fi# executable called "manual" is started only by moduseif [ -x "$IMG/manual" ]; then "$IMG/manual"; firm -f "$INSORDER"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?