From: <abe...@us...> - 2017-03-24 16:42:57
|
Revision: 8228 http://sourceforge.net/p/astlinux/code/8228 Author: abelbeck Date: 2017-03-24 16:42:55 +0000 (Fri, 24 Mar 2017) Log Message: ----------- genx86_64-vm, test for Hyper-V and modprobe hv_* modules automatically Modified Paths: -------------- branches/1.0/project/astlinux/target_skeleton/etc/rc Modified: branches/1.0/project/astlinux/target_skeleton/etc/rc =================================================================== --- branches/1.0/project/astlinux/target_skeleton/etc/rc 2017-03-24 16:05:40 UTC (rev 8227) +++ branches/1.0/project/astlinux/target_skeleton/etc/rc 2017-03-24 16:42:55 UTC (rev 8228) @@ -213,9 +213,15 @@ ;; genx86_64-vm) + # Xen if [ -f /sys/hypervisor/type ] && grep -q 'xen' /sys/hypervisor/type; then modprobe xen-netfront fi + # Hyper-V + if lscpu | grep -q -i '^hypervisor vendor: *microsoft'; then + modprobe hv_netvsc + modprobe hv_utils + fi ;; esac This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |