#!/bin/sh

if [ -e /usr/bin/xinput_calibrator_once.sh ] ; then
  if [ -e /etc/pointercal.xinput ] ; then
    if [ -e /usr/bin/fsoraw ] ; then
      # because ts tap to unblank will be used as first calibration click and then store invalid calibration
      fsoraw -fr CPU,Display -- /usr/bin/xinput_calibrator_once.sh
    else
      /usr/bin/xinput_calibrator_once.sh
    fi
  fi
fi
