Unverified Commit 66377d2c authored by Darko Poljak's avatar Darko Poljak Committed by GitHub

Merge pull request #739 from dne/openbsd-explorers

Support OpenBSD in "cpu_cores" and "disks" global explorers
parents 73784b04 dbcf7d55
......@@ -28,6 +28,10 @@ case "$os" in
sysctl -n hw.physicalcpu
sysctl -n hw.ncpuonline
if [ -r /proc/cpuinfo ]; then
cores="$(grep "core id" /proc/cpuinfo | sort | uniq | wc -l)"
cd /dev || exit 0
echo sd? hd? vd?
#!/bin/sh -e
case "$os" in
IFS=',' disks=$(sysctl -n hw.disknames)
for d in $disks; do
echo "${d%%:*}"
done | sed -n '/^[sw]d[0-9][0-9]*/p'
cd /dev || exit 0
echo sd? hd? vd?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment