doit-nfs.sh

来自「Solaris操作系统下的过滤驱动程序, C源码程序.」· Shell 代码 · 共 30 行

SH
30
字号
#!/bin/bash -norcset -x# overlay mount on top of NFS examplePATH=/sbin:.:/usr/local/fist:${PATH}export PATH#make module_install#make module_install_nocheck#make installlsmodinsmod ./wrapfs.o || exitlsmod#read n#sleep 1mount -t wrapfs -o dir=/mnt/wrapfs /mnt/wrapfs /mnt/wrapfs || exit#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 + -
显示快捷键?