📄 short_load
字号:
#!/bin/shmodule="short"device="short"group="wheel"mode="666"# invoke insmod with all arguments we got/sbin/insmod -f $module.o $* || exit 1major=`cat /proc/devices | awk "\\$2==\"$module\" {print \\$1}"`rm -f /dev/${device}[0-3]mknod /dev/${device}0 c $major 0mknod /dev/${device}1 c $major 1mknod /dev/${device}2 c $major 2mknod /dev/${device}3 c $major 3rm -f /dev/${device}[0-3][ps]mknod /dev/${device}0p c $major 16mknod /dev/${device}1p c $major 17mknod /dev/${device}2p c $major 18mknod /dev/${device}3p c $major 19mknod /dev/${device}0s c $major 32mknod /dev/${device}1s c $major 33mknod /dev/${device}2s c $major 34mknod /dev/${device}3s c $major 35rm -f /dev/${device}intmknod /dev/${device}int c $major 128chgrp $group /dev/${device}[0-3] /dev/${device}[0-3][ps] /dev/${device}intchmod $mode /dev/${device}[0-3] /dev/${device}[0-3][ps] /dev/${device}int
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -