mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
fix .sh typo on kernel module test that accept the module as first argument
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
f=/sys/kernel/debug/lkmc_seq_file
|
||||
mod="${1:-seq_file.ko}"
|
||||
[ $# -gt 1] && shift
|
||||
[ $# -gt 1 ] && shift
|
||||
insmod "$mod" "$@"
|
||||
[ "$(cat "$f")" = "$(printf '0\n1\n2\n')" ]
|
||||
[ "$(cat "$f")" = "$(printf '0\n1\n2\n')" ]
|
||||
|
||||
Reference in New Issue
Block a user