scream/scream_load

15 lines
225 B
Plaintext
Raw Normal View History

2024-08-14 19:01:55 +00:00
#!/bin/sh
module="scream"
mode="666"
/sbin/insmod ./$module.ko "$@" || exit 1
rm -f /dev/${module}
major=$(awk "\$2==\"$module\" {print \$1}" /proc/devices)
mknod /dev/${module}0 c "$major" 0
chmod $mode /dev/${module}