Commit 9a8e31a4 authored by unknown's avatar unknown
Browse files

FreeBSD doesn't have /proc/cpuinfo, use sysctl to find cpu model.


BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
parent 8a5a1841
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -19,6 +19,18 @@ if test -r /proc/cpuinfo ; then
  if test -z "$model_name" ; then
    model_name=`uname -m`
  fi
else
  # Fallback when there is no /proc/cpuinfo
  case "`uname -s`" in
    FreeBSD)
      cpu_family=`uname -m`;
      model_name=`sysctl -b hw.model`
      ;;
    *)
      cpu_family=`uname -m`;
      model_name="unknown";
      ;;
  esac
fi

case "$cpu_family--$model_name" in
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ administrador@light.hegel.local
ahlentz@co3064164-a.rochd1.qld.optusnet.com.au
akishkin@work.mysql.com
antony@ltantony.dsl-verizon.net
antony@ltantony.mysql.com
antony@ltantony.rdg.cyberkinetica.com
antony@ltantony.rdg.cyberkinetica.homeunix.net
arjen@bitbike.com