#!/bin/sh

disk_rw

#if [ -e "/opt/pos/common/bin/touch_config" ]; then
#  /opt/pos/common/bin/touch_config
#else
  xinput_calibrator --output-type xinput > /tmp/cal
  cat /tmp/cal | grep "xinput set-int-prop" > /tmp/cal2
  cat /tmp/cal | grep "xinput set-int-prop" >> /tmp/cal2
  /opt/bin/replace_token /root/.fluxbox/startup.orig "##COORDINATES##" /tmp/cal2 > /root/.fluxbox/startup
#fi

disk_ro

