#!/bin/sh


PLT_QUERY_FILE=/usr/sbin/system-is-branch

if [ -f ${PLT_QUERY_FILE} ]; then

  # it seems os4k-platform-support is installed, so we have a platform version > 7.1.x
  ${PLT_QUERY_FILE}
  rc=$?
  if [ "$rc" = "0" ]; then
    echo "Hardware is an OpenScape Branch"
    exit 1
  else
    echo "Hardware is not an OpenScape Branch"
    exit 0
  fi
else
  # it seems os4k-platform-support is not installed, so we have a platform version <=  7.1.7
  # in this case it can not be an OpenScape Branch
    echo "Hardware can not be an OpenScape Branch"
    exit 0
fi  