mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
11 lines
172 B
Bash
Executable File
11 lines
172 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
insmod /seq_file_single.ko
|
|
cd /sys/kernel/debug
|
|
cat 'lkmc_seq_file_single'
|
|
# => ab
|
|
# => cd
|
|
dd if='lkmc_seq_file_single' bs=1 count=3 skip=1
|
|
# => b
|
|
# => c
|