Commit 1722e242 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Add code to detect openbsd flavors

parent 5ff568d5
......@@ -199,6 +199,12 @@ get_base_distro() {
else
warn "Unknown Unix flavor."
fi
elif [ -e "$root_dir/etc/magic" ]; then
if grep -in openbsd "$root_dir/etc/magic" &> /dev/null; then
echo "openbsd"
else
warn "Unknown Unix flavor"
fi
else
warn "Unknown base distro."
fi
......@@ -239,12 +245,17 @@ get_distro() {
else
warn "Unknown Unix flavor"
fi
elif [ -e "$root_dir/etc/magic" ]; then
if grep -in openbsd "$root_dir/etc/magic" &> /dev/null; then
echo "openbsd"
else
warn "Unknown Unix flavor"
fi
else
warn "Unknown distro."
fi
}
get_partition_table() {
local dev output
dev="$1"
......
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