restart

来自「超小usb协议栈」· 代码 · 共 36 行

TXT
36
字号
#!/bin/shME=`basename $0`#UMOD=`lsmod | grep '^bp-mouse' | grep -v grep`#if test "$UMOD"; then#  echo "$ME: removing bp-mouse.o"#  if ! rmmod bp-mouse; then#    echo "$ME: cannot remove bp-mouse.o"#    exit 1#  fi#fiUPID=`ps aux | grep uhci-control | grep -v grep | awk '{print $2}'`if test "$UPID"; then  echo "$ME: killing $UPID"  kill $UPIDfiUMOD=`lsmod | grep '^usb-uhci' | grep -v grep`if test "$UMOD"; then  echo "$ME: removing usb-uhci.o"  sleep 1  if ! rmmod usb-uhci; then    echo "$ME: cannot remove usb-uhci.o"    exit 1  fifidmesg -c > /dev/nullecho "$ME: starting usb-uhci.o"insmod -m usb-uhci.o > usb-uhci.map#echo "$ME: starting bp-mouse.o"#insmod -m bp-mouse.o > bp-mouse.map

⌨️ 快捷键说明

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