mirror of
https://github.com/dynup/kpatch
synced 2024-12-13 08:54:38 +00:00
Merge pull request #204 from terrywang/ubuntu
kpatch Ubuntu support and more
This commit is contained in:
commit
d82e430053
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user