提交 c6fdd7dc 编写于 作者: U Ulf Möller

Recognize CPU version on NetBSD and FreeBSD.

NetBSD entry submitted by: Todd Vierling <tv@pobox.com>
上级 61f5b6f3
......@@ -123,16 +123,23 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
echo "${MACHINE}-whatever-freebsd3"; exit 0
;;
FreeBSD:*:*:*486*)
echo "i486-whatever-freebsd"; exit 0
FreeBSD:*:*:*386*)
case `sysctl -n hw.model` in
Pentium*)
echo "i586-whatever-freebsd"; exit 0
;;
*)
echo "i386-whatever-freebsd"; exit 0
;;
esac;
;;
FreeBSD:*)
echo "${MACHINE}-whatever-freebsd"; exit 0
;;
NetBSD:*:*:*486*)
echo "i486-whatever-netbsd"; exit 0
NetBSD:*:*:*386*)
echo "`sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whateve\r-netbsd"; exit 0
;;
NetBSD:*)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册