/opt/bin/machine_calibrate
#!/bin/sh
cat /root/.fluxbox/startup | grep -v "xinput " > /tmp/startup.new
export DISPLAY=:0.0
xinput_calibrator --output-type xinput > /tmp/t1
xinput_calibrator --output-type xinput > /tmp/t2
cat /tmp/t1 /tmp/t2 | grep "xinput set-int-prop" > /tmp/t3
echo "# x11vnc" >> /tmp/t3
cp /root/.fluxbox/startup /tmp/t4
/opt/bin/replace_token /tmp/t4 "# x11vnc" /tmp/t3 > /tmp/startup.new
cp /tmp/startup.new /root/.fluxbox/startup