📄 can
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -