mirror of
https://github.com/AuxXxilium/arc-c.git
synced 2024-11-23 23:11:08 +07:00
arc-a: add kvmsupport check
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
be38f4dd92
commit
f95bcdbdcb
@ -60,6 +60,12 @@ initConfigKey "ip" "{}" "${USER_CONFIG_FILE}"
|
||||
initConfigKey "netmask" "{}" "${USER_CONFIG_FILE}"
|
||||
initConfigKey "mac" "{}" "${USER_CONFIG_FILE}"
|
||||
initConfigKey "static" "{}" "${USER_CONFIG_FILE}"
|
||||
# KVM Check
|
||||
if grep -q "^flags.*vmx.*" /proc/cpuinfo | grep -q "^flags.*svm.*" /proc/cpuinfo; then
|
||||
writeConfigKey "arc.kvm" "true" "${USER_CONFIG_FILE}"
|
||||
else
|
||||
writeConfigKey "arc.kvm" "false" "${USER_CONFIG_FILE}"
|
||||
fi
|
||||
|
||||
# Init Network
|
||||
ETHX=$(ls /sys/class/net/ | grep -v lo) || true
|
||||
|
Loading…
Reference in New Issue
Block a user