📄 gspca_build
字号:
#!/bin/bashWHO=`whoami`KERNELVER=`uname -r`SRCDIR=/lib/modules/$KERNELVER/buildif [ $WHO != "root" ]; thenecho -e '\E[31;44m'echo -e '\E[1m FATAL !! you must be root to run this script\E[0m'exit 1fiif [ ! -d $SRCDIR/include/linux ]; thenecho -e '\E[31;44m'echo -e '\E[1m FATAL you need to install the Kernel Source for your running kernel\E[0m'exit 1fiecho -e '\E[1;33;44m'echo -e '\E[1m REMOVE the old module if present\E[0m'rmmod gspcaecho -e '\E[1;33;44m'echo -e '\E[1m CLEAN gspca source tree\E[0m'make cleanecho -e '\E[1;33;44m'echo -e '\E[1m COMPILE gspca Please Wait ....!!\E[0m'make >& kgspca.errecho -e '\E[1;33;44m'echo -e '\E[1m INSTALL gspca in the kernel binary tree\E[0m'make install echo -e '\E[1;33;44m'echo -e '\E[1m LOAD gspca in memory \E[0m'modprobe gspcaecho -e '\E[1;33;44m'echo -e '\E[1m PRINT COMPILATION MESSAGES if ERRORS look kgspca.err \E[0m'cat kgspca.err
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -