kpatch: pass basename of argument to unload_module

This commit is contained in:
Jessica Yu 2014-07-10 22:15:12 -07:00
parent f5189d815f
commit 5e1062cf29

View File

@ -165,7 +165,7 @@ case "$1" in
"unload")
[[ "$#" -ne 2 ]] && usage
[[ $2 =~ ^- ]] && usage
unload_module "$2" || die "failed to unload module $2"
unload_module "$(basename $2)" || die "failed to unload module $2"
;;
"install")