aboutsummaryrefslogtreecommitdiff
path: root/gobook-xr1.sh
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2014-10-28 12:54:44 -0500
committerDavid Barksdale <amatus@amatus.name>2014-10-28 12:54:44 -0500
commitd04fbcf4b89dfd56f03dd0824e4774ca7739f3ac (patch)
tree7c87e1d709f0615d93723d5012474ad0b3394dfe /gobook-xr1.sh
parent6608c2444d99db7e2de1491965deab059d9a7bf6 (diff)
Touchscreen fixes
Diffstat (limited to 'gobook-xr1.sh')
-rwxr-xr-xgobook-xr1.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/gobook-xr1.sh b/gobook-xr1.sh
index d7cbe37..738d7f7 100755
--- a/gobook-xr1.sh
+++ b/gobook-xr1.sh
@@ -2,13 +2,15 @@
# Enable touchscreen
sudo install -m 755 gobook-xr1-touchscreen /etc/init.d/
+sudo /etc/init.d/gobook-xr1-touchscreen start
sudo update-rc.d gobook-xr1-touchscreen defaults
# Calibrate touchscreen
if ! test -e /usr/share/X11/xorg.conf.d/99-calibration.conf; then
sudo apt-get install -y xinput-calibrator
xinput_calibrator | sed -n -e '/Section/,/EndSection/p' > 99-calibration.conf
- sudo install -m 644 99-calibration.conf /usr/share/X11/xorg.conf.d/
+ test -s 99-calibration.conf &&
+ sudo install -m 644 99-calibration.conf /usr/share/X11/xorg.conf.d/
rm 99-calibration.conf
fi