Linux 内核模块编程(二)

编写shell脚本:

1.新建文件vi start.sh,编写shell内容(需要的内容即可),如下例:

#/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.sh

3.运行shell脚本。

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

原文地址:https://www.cnblogs.com/meiqin970126/p/9172764.html