16 lines
642 B
Bash
16 lines
642 B
Bash
#!/bin/sh
|
|
[ -f /sources/milis.git/ayarlar/moduller/vmci.ko ] && cp /sources/milis.git/ayarlar/moduller/vmci.ko /lib/modules/$(uname -r)/extra/
|
|
cd /usr/src/vmware-14*
|
|
[ -f /usr/src/linux-$(uname -r)/vmlinux ] && mv /usr/src/linux-$(uname -r)/vmlinux /opt
|
|
make KVERSION=$(uname -r) VM_KBUILD=yes -C vmmon-only
|
|
cp vmmon-only/vmmon.ko lib/modules/$(uname -r)/extra/
|
|
|
|
make KVERSION=$(uname -r) VM_KBUILD=yes -C vmnet-only
|
|
cp vmnet-only/vmnet.ko lib/modules/$(uname -r)/extra/
|
|
|
|
[ -f /opt/vmlinux ] && mv /opt/vmlinux /usr/src/linux-$(uname -r)/
|
|
depmod
|
|
modprobe vmmon
|
|
modprobe vmnet
|
|
[ -f lib/modules/$(uname -r)/extra/vmci.ko ] && modprobe vmci
|