aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make-boot-splash
blob: cca72f2df9873c2723e4331e2e9959539fa056c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# -*- Mode: shell-script -*-
# Copyright (C) 2002 by Chmouel Boudjnah <chmouel@mandrakesoft.com>
# Redistribution of this file is permitted under the terms of the GNU 
# Public License (GPL)
# $Id: make-boot-splash 261558 2009-10-07 17:07:28Z fcrozat $

: ${splash_dir=/usr/share/bootsplash}

[[ -f /etc/sysconfig/bootsplash ]] && source /etc/sysconfig/bootsplash
[[ -z $THEME ]] && THEME=Mageia-Default

[ $# = 2 ] || { echo "usage: $0 <initrd> <resolution>"; exit 1; }

initrd_file=$1
resolution=$2

plymouth-set-default-theme $THEME

$splash_dir/scripts/make-boot-splash-raw $initrd_file || exit 1
    
if [ -z "$DURING_INSTALL" ]; then
    $splash_dir/scripts/switch-themes -u
fi