#!/bin/sh

disk_rw

xinput_calibrator --output-type auto > /tmp/cal.txt

CNT=`cat /tmp/cal.txt | egrep "Section|Identifier|MatchProduct|Option"`
echo $CNT > /usr/share/X11/xorg.conf.d/99-calibration.conf

rm -rf /tmp/cal.txt

disk_ro

