pmaports/device-htc-bravo/initfs-hook.sh
drebrez 1919b37f3a Add device HTC Desire (Bravo) support (#202)
* Add HTC Desire (Bravo) device-specific and kernel package

* Enable kernel virtual terminal support

* Add framebuffer and usb configuration in initfs-hook script

* Add udev required kernel options and set correct framebuffer resolution

* Add touchscreen device rules and enabled kernel logs (dmesg)

* Add deviceinfo_flash_offset_base in deviceinfo and update other offsets
2017-07-20 17:52:09 +00:00

8 lines
227 B
Bash

#!/bin/sh
# set framebuffer resolution
echo 16 > /sys/class/graphics/fb0/bits_per_pixel
echo 480,1600 > /sys/class/graphics/fb0/virtual_size
# set usb properties
echo 4 > /sys/devices/platform/android_usb/usb_function_switch