mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
8 lines
162 B
Bash
Executable File
8 lines
162 B
Bash
Executable File
#!/bin/sh
|
|
insmod /character_device.ko
|
|
/mknoddev.sh character_device
|
|
cat /dev/lkmc_character_device
|
|
# => abcd
|
|
rm /dev/lkmc_character_device
|
|
rmmod character_device
|