mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Fix shift blowup without arguments
This commit is contained in:
@@ -9,7 +9,7 @@ odraw() (
|
||||
# Setup
|
||||
f=/sys/kernel/debug/lkmc_memfile
|
||||
mod="${1:-memfile.ko}"
|
||||
shift
|
||||
[ $# -gt 1] && shift
|
||||
insmod "$mod" "$@"
|
||||
|
||||
# Starts off empty
|
||||
|
||||
Reference in New Issue
Block a user