| 1 |
if [ -n "$TERM_FRAMEBUFFER_TRY" ] && \ |
| 2 |
[ "$(debconf-get debian-installer/framebuffer)" = true ]; then |
| 3 |
echo "Trying to enable the frame buffer..." |
| 4 |
if grep -q VESA /proc/fb || \ |
| 5 |
(modprobe -q vesafb >/dev/null 2>&1 && grep -q . /proc/fb) || \ |
| 6 |
(modprobe -q vga16fb >/dev/null 2>&1 && grep -q . /proc/fb); then |
| 7 |
if [ ! -d /sys/class/graphics/fbcon ]; then |
| 8 |
modprobe -q fbcon >/dev/null 2>&1 |
| 9 |
fi |
| 10 |
|
| 11 |
# sledgehammer workaround for race condition |
| 12 |
if type update-dev >/dev/null 2>&1; then |
| 13 |
update-dev --settle |
| 14 |
fi |
| 15 |
fi |
| 16 |
fi |