kpatch: make kpatch load & unload work on more distros with less code ;-D

This commit is contained in:
Terry Wang 2014-05-23 21:22:40 +10:00
parent 24fba4f773
commit 0098bd0036
1 changed files with 3 additions and 3 deletions

View File

@ -98,11 +98,11 @@ load_module () {
else
find_core_module || die "can't find core module"
echo "loading core module: $COREMOD"
/usr/sbin/insmod "$COREMOD" || die "failed to load core module"
insmod "$COREMOD" || die "failed to load core module"
fi
fi
echo "loading patch module: $1"
/usr/sbin/insmod "$1" "$2"
insmod "$1" "$2"
}
unload_module () {
@ -120,7 +120,7 @@ unload_module () {
fi
echo "unloading patch module: $PATCH"
/usr/sbin/rmmod "$(basename $1)"
rmmod "$(basename $1)"
}
unload_disabled_modules() {