2017-09-01 22:20:09 +00:00
|
|
|
main() {
|
2022-10-14 11:46:40 +00:00
|
|
|
# Wait until graphical environment is running
|
|
|
|
sleep 5
|
|
|
|
# Workaround for buggy graphics driver
|
|
|
|
while [ ! ];
|
|
|
|
do
|
|
|
|
echo '0,0' > /sys/class/graphics/fb0/pan;
|
|
|
|
done
|
2017-09-01 22:20:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# tty1 autologin
|
|
|
|
if [ $(tty) = "/dev/tty1" ]; then
|
2022-10-14 11:46:40 +00:00
|
|
|
# Run in background, to make /etc/profile not wait for it to finish
|
|
|
|
main &
|
2017-09-01 22:20:09 +00:00
|
|
|
fi
|