diff --git a/device/device-motorola-shamu/APKBUILD b/device/device-motorola-shamu/APKBUILD index f72ef7f98..dcfb90b6c 100644 --- a/device/device-motorola-shamu/APKBUILD +++ b/device/device-motorola-shamu/APKBUILD @@ -1,7 +1,7 @@ # Reference: pkgname="device-motorola-shamu" pkgdesc="Motorola Google Nexus 6" -pkgver=0.1 +pkgver=0.2 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -9,7 +9,7 @@ arch="noarch" options="!check" depends="linux-motorola-shamu mkbootimg mesa-dri-swrast" makedepends="devicepkg-dev" -source="deviceinfo" +source="deviceinfo initfs-hook.sh" build() { devicepkg_build $startdir $pkgname @@ -17,6 +17,9 @@ build() { package() { devicepkg_package $startdir $pkgname + install -Dm644 "$srcdir"/initfs-hook.sh \ + "$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh } -sha512sums="40bff906976c61fa5a80bf564fa356249cd70b373508d81be517f8cdd0324c4ebf530436b110494e4a9f232e2a03fd3d1470a1760807f16b2f72cf187336d837 deviceinfo" +sha512sums="13c79ab6154aaea987a6214d0cc22bd940c111ef4759064ef1abb32b5148b1e07932ab011441f7e97ce39d9bc84a21a5064c2e0940d7818f7d5085d768445057 deviceinfo +61ca4daae82a27775463d95d7857324ea542bec47dc1f9b0106d1dadd3d9da66bba5a5c9a4e28a8330fd117a49432ea063ef4a0e27e9c6b0826d3abcf11f7e44 initfs-hook.sh" diff --git a/device/device-motorola-shamu/deviceinfo b/device/device-motorola-shamu/deviceinfo index 2dd390bae..320316be8 100644 --- a/device/device-motorola-shamu/deviceinfo +++ b/device/device-motorola-shamu/deviceinfo @@ -15,7 +15,7 @@ deviceinfo_keyboard="false" deviceinfo_external_disk="false" deviceinfo_screen_width="1440" deviceinfo_screen_height="2560" -deviceinfo_dev_touchscreen="" +deviceinfo_dev_touchscreen="/dev/input/event0" deviceinfo_dev_touchscreen_calibration="" deviceinfo_dev_keyboard="" deviceinfo_msm_refresher="false" diff --git a/device/device-motorola-shamu/initfs-hook.sh b/device/device-motorola-shamu/initfs-hook.sh new file mode 100644 index 000000000..9cb6d08a7 --- /dev/null +++ b/device/device-motorola-shamu/initfs-hook.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# enable touchscreen +echo 1 > /sys/devices/f9966000.i2c/i2c-1/1-004a/drv_irq