pmaports/device/device-sony-amami/fb-workaround.sh

16 lines
306 B
Bash
Raw Normal View History

2017-08-07 19:08:35 +00:00
main() {
# Wait untill graphical enviroment is running
2017-09-01 23:57:28 +00:00
sleep 5
2017-08-07 19:08:35 +00:00
# Workaround for buggy graphics driver
for i in 1 2
do
echo "0,0" > /sys/class/graphics/fb0/pan
done
}
# tty1 autologin
if [ $(tty) = "/dev/tty1" ]; then
# Run in background, to make /etc/profile not wait for it to finish
main &
fi