diff options
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 |