pmaports/device/device-sony-yuga/fb-workaround.sh
2017-09-02 18:51:38 +00:00

15 lines
306 B
Bash

main() {
# Wait untill graphical enviroment is running
sleep 5
# 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