gspca_build

来自「LINUX X86平台下 万能摄象头驱动」· 代码 · 共 35 行

TXT
35
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?