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:
tv 2000-08-10 14:57:22 +00:00
parent 8b87324ac7
commit 78da8a8e6b

View File

@ -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:*:*)