Commit 06fbe18f by Richard Kenner

(i[34]86:*:3.2:*) test for /usr/options/cb.name before calling uname.

From-SVN: r9505
parent 3c013dd5
...@@ -329,13 +329,13 @@ EOF ...@@ -329,13 +329,13 @@ EOF
fi fi
exit 0 ;; exit 0 ;;
i[34]86:*:3.2:*) i[34]86:*:3.2:*)
if /bin/uname -X 2>/dev/null >/dev/null ; then if test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
elif /bin/uname -X 2>/dev/null >/dev/null ; then
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
elif test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
else else
echo ${UNAME_MACHINE}-unknown-sysv32 echo ${UNAME_MACHINE}-unknown-sysv32
fi fi
......
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