#!/bin/sh
global displayargs
. /env/config

if [ -z $display ]; then
	echo "no display configured"
	exit 0
fi

if [ $display = dvi ]; then
	global.displayargs="omapdss.def_disp=dvi omapfb.mode=dvi:$dvi_resolution"
	exit 0
fi

# Display a splash screen

if [ -e /dev/fb0 ]; then
	fb0.mode_name=$display
	splash /dev/nand0.splash.bb
	fb0.enable=1
fi

global.displayargs="panel_generic_dpi.name=$display"
