#!/bin/sh

disk_rw

MACHINE="ruby_tech_15"

xinput_calibrator --output-type xinput > /tmp/out
cat /tmp/out | grep "xinput set-int-prop" | cut -d"\"" -f5 > /tmp/coord
/opt/bin/replace_token /opt/files/$MACHINE/startup "##COORDINATES##" /tmp/coord > /root/.fluxbox/startup
rm -rf /tmp/coord /tmp/out

disk_ro

