diff options
author | David Barksdale <amatus@amatus.name> | 2014-10-28 12:54:44 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-10-28 12:54:44 -0500 |
commit | d04fbcf4b89dfd56f03dd0824e4774ca7739f3ac (patch) | |
tree | 7c87e1d709f0615d93723d5012474ad0b3394dfe /gobook-xr1.sh | |
parent | 6608c2444d99db7e2de1491965deab059d9a7bf6 (diff) |
Touchscreen fixes
Diffstat (limited to 'gobook-xr1.sh')
-rwxr-xr-x | gobook-xr1.sh | 4 |
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 |