More compatible yet: sysctl used to be in /usr/sbin, not /sbin, so add both
locations to $PATH before trying to run sysctl.
This commit is contained in:
parent
8b87324ac7
commit
78da8a8e6b
3
gnu/dist/toolchain/config.guess
vendored
3
gnu/dist/toolchain/config.guess
vendored
@ -512,7 +512,8 @@ EOF
|
|||||||
fi
|
fi
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:NetBSD:*:*)
|
*:NetBSD:*:*)
|
||||||
UNAME_MACHINE_ARCH=`(uname -p || /sbin/sysctl -n hw.machine_arch) 2>/dev/null` || UNAME_MACHINE_ARCH=unknown
|
PATH=$PATH:/sbin:/usr/sbin
|
||||||
|
UNAME_MACHINE_ARCH=`(uname -p || sysctl -n hw.machine_arch) 2>/dev/null` || UNAME_MACHINE_ARCH=unknown
|
||||||
echo ${UNAME_MACHINE_ARCH}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
echo ${UNAME_MACHINE_ARCH}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
*:OpenBSD:*:*)
|
*:OpenBSD:*:*)
|
||||||
|
Loading…
Reference in New Issue
Block a user