mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
8 lines
168 B
Bash
Executable File
8 lines
168 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
insmod character_device_create.ko
|
|
dev='/dev/lkmc_character_device_create_dev'
|
|
[ "$(cat "$dev")" = abcd ]
|
|
rmmod character_device_create
|
|
[ ! -e "$dev" ]
|