pmaports/device/testing/device-motorola-osprey/fb-workaround.sh

13 lines
305 B
Bash
Raw Normal View History

2017-10-07 17:55:55 +00:00
main() {
# Wait until graphical environment is running
sleep 5
# Workaround for buggy graphics driver
cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode
}
# tty1 autologin
if [ $(tty) = "/dev/tty1" ]; then
# Run in background, to make /etc/profile not wait for it to finish
main &
fi