aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/make-boot-splash8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/make-boot-splash b/scripts/make-boot-splash
index 45b8c56..90eb731 100755
--- a/scripts/make-boot-splash
+++ b/scripts/make-boot-splash
@@ -13,8 +13,14 @@ initrd_file=$1
echo "You need to specify a initrd file as argument"
exit 1;
}
+shift
+
+vgamode=$2
+
+if [[ -z $vgamode || $vgamode == auto ]];then
+ vgamode=$( $splash_dir/scripts/detect-resolution )
+fi
-vgamode=$( $splash_dir/scripts/detect-resolution )
if [[ $vgamode == 800* ]];then
resolution=800x600
elif [[ $vgamode == 1024* ]];then