Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
distroscript
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Joe Holden
distroscript
Commits
5ef92d59
Commit
5ef92d59
authored
Apr 21, 2017
by
Joe Holden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indent, detect KVm vs QEMU on OpenBSD
parent
bef22df8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
distro
distro
+9
-5
No files found.
distro
View file @
5ef92d59
...
...
@@ -413,12 +413,12 @@ getvirt() {
VIRT
=
`
detectvirt
"
${
tmp
}
"
`
fi
fi
if
[
"
${
VIRT
}
"
=
"qemu"
]
;
then
tmp
=
`
dmesg |
grep
-ciF
'Booting paravirtualized kernel on KVM'
`
if
[
"
${
tmp
}
"
=
"1"
]
;
then
VIRT
=
kvm
if
[
"
${
VIRT
}
"
=
"qemu"
]
;
then
tmp
=
`
dmesg |
grep
-ciF
'Booting paravirtualized kernel on KVM'
`
if
[
"
${
tmp
}
"
=
"1"
]
;
then
VIRT
=
kvm
fi
fi
fi
elif
[
"
${
OS
}
"
=
"FreeBSD"
-o
"
${
OS
}
"
=
"OpenBSD"
-o
"
${
OS
}
"
=
"NetBSD"
]
;
then
if
[
"
${
OS
}
"
=
"FreeBSD"
]
;
then
tmp
=
`
sysctl
-n
hw.hv_vendor 2>/dev/null
`
...
...
@@ -432,6 +432,10 @@ getvirt() {
VIRT
=
`
detectvirt
"
${
tmp
}
"
`
fi
fi
if
[
"
${
OS
}
"
=
"OpenBSD"
]
;
then
tmp
=
`
dmesg |
grep
pvbus0 |
awk
'{print $4}'
`
VIRT
=
`
detectvirt
"
${
tmp
}
"
`
fi
if
[
"
${
VIRT
}
"
=
"none"
]
;
then
tmp
=
`
sysctl
-n
hw.product 2>/dev/null
`
VIRT
=
`
detectvirt
"
${
tmp
}
"
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment