HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-10-0-0-110 6.14.0-1016-aws #16~24.04.1-Ubuntu SMP Tue Oct 14 02:15:09 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/share/initramfs-tools/hooks/framebuffer
#!/bin/sh

# shellcheck disable=SC2034
OPTION=FRAMEBUFFER
PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions

if [ "${MODULES-}" = "dep" ]; then
	if [ -e /sys/class/drm ]; then
		class_add_modules drm
	fi
elif [ "${MODULES-}" != "list" ]; then
	auto_add_modules fbdev minimal_drm
fi