ALT Linux Bugzilla
– Attachment 3898 Details for
Bug 21625
[FR] safety net against endless X server restarts
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
антимигатор
kiosk (text/plain), 950 bytes, created by
Michael Shigorin
on 2009-09-19 12:47:13 MSD
(
hide
)
Description:
антимигатор
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2009-09-19 12:47:13 MSD
Size:
950 bytes
patch
obsolete
>#!/bin/bash > >startcount=0 >failcount=0 > >while /bin/true ; do > # this will try dual-head if two heads are found, > # and fall back to single-head; if X keeps crashing, > # then bail out and let init temporarily disable > # autologin > startcount=$((startcount+1)) > /opt/bin/xinit-wrapper /opt/bin/kiosk.xinit || { > # in case X crashes forever, it should be at least stoppable > failcount=$((failcount+1)) > chvt 1 > echo >/dev/tty1 > echo "Graphics subsystem failed to start," >/dev/tty1 > echo "re-trying in 10 seconds... (attempt $failcount)" >/dev/tty1 > echo >/dev/tty1 > sleep 10 > } > # falling back to vesa, reboot needed to > # re-autodetect proper driver from now on > [ "$failcount" -gt 2 ] && { > x11setupdrv -s vesa > xinit /opt/bin/kiosk.xinit > } > [ "$failcount" -gt 3 ] && { > chvt 1 > echo >/dev/tty1 > echo "Graphics subsystem seems broken" >/dev/tty1 > echo "Call Technical Support" >/dev/tty1 > echo >/dev/tty1 > sleep 60 > exit 1 > } >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 21625
: 3898