diff options
author | David Barksdale <amatus@amatus.name> | 2014-10-27 10:22:27 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2014-10-27 10:22:27 -0500 |
commit | 6877d7f60404ed63978b6725c85760437c24b7f8 (patch) | |
tree | c874950322a654248410befa5151106eb0d81555 /gobook-xr1.sh | |
parent | 744ca80687aea3a9f0160a87d26f175a1c28a288 (diff) |
Add GoBook XR-1 sound fix
Diffstat (limited to 'gobook-xr1.sh')
-rwxr-xr-x | gobook-xr1.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gobook-xr1.sh b/gobook-xr1.sh index cacefce..d7cbe37 100755 --- a/gobook-xr1.sh +++ b/gobook-xr1.sh @@ -5,7 +5,14 @@ sudo install -m 755 gobook-xr1-touchscreen /etc/init.d/ sudo update-rc.d gobook-xr1-touchscreen defaults # Calibrate touchscreen -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/ -rm 99-calibration.conf +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/ + rm 99-calibration.conf +fi + +# Fix sound +sudo install -m 644 blacklist-gobook-xr1-sound.conf /etc/modprobe.d/ +sudo install -m 755 gobook-xr1-sound /etc/init.d/ +sudo update-rc.d gobook-xr1-sound defaults |