can.svn-base
来自「canpie 一个can bus的协议栈 - CAN interface fo」· SVN-BASE 代码 · 共 57 行
SVN-BASE
57 行
#!/bin/sh## can 1.00## Initialize or shutdown a CANpie device## The first argument should be either 'start' or 'stop'. The second# argument is the base name for the device.## There is not very much to do for this script...#if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi# Get device attributesget_info $DEVICE# Load site-specific settingsADDRESS="$SCHEME,$SOCKET,$INSTANCE". $0.optscase "$ACTION" in'start') if is_true $LOAD_CAN ; then modprobe canpie fi ;;'check') is_true $NO_CHECK && exit 0 ;;'cksum') chk_simple "$NEW_SCHEME,$SOCKET,$INSTANCE" || exit 1 ;;'stop') if is_true $LOAD_CAN ; then modprobe -r canpie fi ;;'suspend') ;;'resume') ;;*) usage ;;esacexit 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?