vbox-modules

This commit is contained in:
milisbir 2018-07-11 11:07:05 +02:00
parent 6412443bf0
commit 339745fd2e
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Tanım: VirtualBox kernel modules
# URL: https://virtualbox.org
# Paketçi: milisarge
# Gerekler: kernel elfutils
# Grup: sistem
isim=virtualbox-modules
surum=5.2.14
devir=1
kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-kernel-module-src-${surum}.tar.xz)
derle() {
_kernver="4.15.7-milis"
[ -d /lib/modules/${_kernver}/build/vmlinux ] && rm -rf /lib/modules/${_kernver}/build/vmlinux
cd $SRC/vbox-kernel-module-src-${surum}
make KERN_DIR=/lib/modules/${_kernver}/build MODULE_DIR_TST=${PKG}/lib/modules/${_kernver} \
MODULE_DIR=${PKG}/lib/modules/${_kernver}/misc
cd $SRC/vbox-kernel-module-src-${surum}
install -dm755 ${PKG}/lib/modules/${_kernver}/extra
install -m644 *.ko ${PKG}/lib/modules/${_kernver}/extra/
}

View File

@ -0,0 +1,10 @@
_kernver="4.15.7-milis"
depmod -a ${_kernver}
modules=(vboxnetadp vboxnetflt vboxpci vboxdrv)
echo -n 'Loading modules: '
for _m in "${modules[@]}"; do
modprobe "$_m" && echo -n "$_m "
done
echo