doit.sh
来自「Solaris操作系统下的过滤驱动程序, C源码程序.」· Shell 代码 · 共 37 行
SH
37 行
#!/bin/bash -norcset -xPATH=/sbin:.:/usr/local/fist:${PATH}export PATH#make module_install#make module_install_nocheck#make installlsmodinsmod ./wrapfs.o || exitlsmodread nsleep 1# regular style mountmount -t wrapfs -o dir=/n/fist/wrapfs,debug=${1:-18} /n/fist/wrapfs /mnt/wrapfs || exit# attach-mode style mount#mount -t wrapfs -o debug=18 none /mnt/wrapfs || exit#read n#fist_ioctl +a /mnt/wrapfs abc /n/fist/wrapfs/zadokexit#read n#sleep 1fist_ioctl -d /mnt/wrapfs ${1:-18} || exitfist_ioctl -f /mnt/wrapfs 1 || exitif test -f fist_setkey ; then read n echo abrakadabra | ./fist_setkey /mnt/wrapfs echofi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?