diff options
author | derekhe <derekhe@april1985.com> | 2015-06-27 18:15:41 +0800 |
---|---|---|
committer | derekhe <derekhe@april1985.com> | 2015-06-27 18:15:41 +0800 |
commit | d7c40afa4334c25c967e8a83401ac1a968a0c084 (patch) | |
tree | 8fb36b1428ff96d6f03a75bfbbc47510fa82c37a /install.sh | |
download | waveshare-7inch-touchscreen-driver-d7c40afa4334c25c967e8a83401ac1a968a0c084.tar.xz waveshare-7inch-touchscreen-driver-d7c40afa4334c25c967e8a83401ac1a968a0c084.zip |
Add touch support.
Diffstat (limited to '')
-rw-r--r-- | install.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..7059a12 --- /dev/null +++ b/install.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +chmod +x *.sh *.py +sudo patch -b /boot/config.txt 7inch.patch +sudo apt-get install -y python3-pip libudev-dev +sudo pip-3.2 install python-uinput pyudev + +sudo cp touch.py /usr/bin/ +sudo cp touch.sh /etc/init.d/ + +chmod +x /usr/bin/touch.py +chmod +x /etc/init.d/touch.sh + +sudo update-rc.d touch.sh defaults
\ No newline at end of file |