Last active
July 17, 2018 20:19
-
-
Save WhisperingChaos/b74f75922160ae8eca6eaa78dc4b48d5 to your computer and use it in GitHub Desktop.
Hyper-V Ubuntu Module for Integration Services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hyperv_kernel_mod_list(){ | |
find /lib/modules/`uname -r` -type f -name "*.ko" \ | |
| grep 'hv_*' \ | |
| xargs -Ihvfilepath basename 'hvfilepath' \ | |
| sed 's/\(.*\)\.ko/\1/' \ | |
| xargs modinfo | |
} | |
hyperv_kernel_mod_desc_ver_name(){ | |
grep -E '^description:|^srcversion:|^name:' | |
} | |
hyperv_mod_report_break(){ | |
sed 's/\('"$1"'\)/\n\1/' | |
} | |
main(){ | |
hyperv_kernel_mod_list \ | |
| hyperv_kernel_mod_desc_ver_name \ | |
| hyperv_mod_report_break 'description:.*' | |
} | |
main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description: Hyper-V Sockets | |
srcversion: 4EC78A1B60598CC0FEB9FC2 | |
name: hv_sock | |
description: Microsoft Hyper-V network driver | |
srcversion: 852146352704FB30084A3F3 | |
name: hv_netvsc | |
description: Hyper-V Utilities | |
srcversion: 3B8AC762BA4858730251E7E | |
name: hv_utils | |
description: Hyper-V Balloon | |
srcversion: A16D42581E4FFEA2485548A | |
name: hv_balloon | |
description: Hyper-V NetworkDirect Driver | |
srcversion: 7B197866704ABF4D2D5835A | |
name: hv_network_direct_142_0 | |
description: Hyper-V NetworkDirect Driver | |
srcversion: 7B197866704ABF4D2D5835A | |
name: hv_network_direct_144_0 | |
description: Generic UIO driver for VMBus devices | |
srcversion: 316CE1B6E0608FE7CCECB48 | |
name: uio_hv_generic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment