driver.1394

来自「1394在linux下单独的驱动程序代码」· 1394 代码 · 共 55 行

1394
55
字号
#!/bin/sh# this is necessary for RedHat-distributions,# because all module tools (depmod, insmod, rmmod)# are located in /sbin, which is not included# in the standard search path for anyoneexport PATH=$PATH:/sbin # fresh up the dependencies first#depmod -aecase "$1" in    clean)	echo -n -e "make clean 1394 modules"	rm -f *.o *.flags	echo	;;    make)	echo -n -e "make 1394 modules for kernel"#	cd /usr/src/linux-2.4.24/	cd /usr/src/linux/	make modules	echo	;;    start)	echo -n -e "Inserting 1394 modules into kernel"	insmod ieee1394.o	insmod ohci1394.o	insmod raw1394.o	insmod video1394.o	echo	;;    debug)	echo -n -e "Inserting 1394 modules with debug options into kernel"	insmod ieee1394.o	insmod ohci1394.o	insmod raw1394.o	insmod video1394.o	echo	;;    stop)	echo -n -e "Deleting 1394 modules from kernel"	rmmod video1394 raw1394 ohci1394 ieee1394 	echo	;;    restart|reload)	$0 stop && $0 start	;;    *)	echo "Usage$0 {start|stop|clean|restart}"	exit 1esacexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?