Linux 内核模块编程(二)

编写shell脚本:shell

1.新建文件vi start.sh,编写shell内容(须要的内容便可),以下例:debug

#/bin/bush
rmmod ../algo/module/nvpairat/nvpairat.ko
rmmod ../algo/module/nvpair/lnvpair.ko
rmmod ../spl/module/spl/spl.ko
 
./autogen.sh
./configure --enable-debug --disable-silent-rules
make -j8
make install

2.设置shell脚本文件的内容为777,命令为:chmod 777 start.sh3d

3.运行shell脚本。blog

【备注:shell脚本内容针对运行shell脚本时所在的目录】class

相关文章
相关标签/搜索