This commit is contained in:
Ciro Santilli
2017-07-27 15:10:00 +01:00
parent 4727fadcc8
commit 75afeba635
3 changed files with 96 additions and 0 deletions

11
rootfs_overlay/sysfs.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -x
insmod /sysfs.ko
cd /sys/kernel/lkmc_sysfs
printf 12345 >foo
cat foo
# => 1234
dd if=foo bs=1 count=2 skip=1 status=none
# => 23
rmmod sysfs