Debian Codegraph @

src/usr/lib/debian-installer-startup.d/S40framebuffer-module-linux-armel

raw
1 if [ -n "$TERM_FRAMEBUFFER_TRY" ] && \
2 [ "$(debconf-get debian-installer/framebuffer)" = true ]; then
3 echo "Trying to enable the frame buffer..."
4 if [ ! -d /sys/class/graphics/fbcon ]; then
5 modprobe -q fbcon >/dev/null 2>&1
6 fi
7
8 # Put the fb modules in the ramdisk so users can see the boot process
9 if [ -d /sys/class/graphics/fb0 ]; then
10 if [ "$(cat /sys/class/graphics/fb0/name)" = "udlfb" ]; then
11 register-module -i udlfb
12 else
13 driver=$(basename $(readlink /sys/class/graphics/fb0/device/driver))
14 register-module -i "$driver"
15 fi
16 register-module -i fbcon
17 else
18 echo "Failed to enable frame buffer."
19 fi
20 fi
21