diff options
author | Frederic Crozat <fcrozat@mandriva.com> | 2009-10-07 14:43:17 +0000 |
---|---|---|
committer | Frederic Crozat <fcrozat@mandriva.com> | 2009-10-07 14:43:17 +0000 |
commit | 88e8551b2edd61408e12fdc7cf961dc23fbef8bc (patch) | |
tree | 26d397697f0aa0fc2a19e8693d7d53b7352646ff /scripts/make-boot-splash | |
parent | 9b530ac7424a69506b5c4d2c78f836e2461a3ec8 (diff) | |
download | bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar.gz bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar.bz2 bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar.xz bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.zip |
- Port to plymouth
Diffstat (limited to 'scripts/make-boot-splash')
-rwxr-xr-x | scripts/make-boot-splash | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/scripts/make-boot-splash b/scripts/make-boot-splash index 5f8ec81..61d0fb6 100755 --- a/scripts/make-boot-splash +++ b/scripts/make-boot-splash @@ -5,40 +5,16 @@ # Public License (GPL) # $Id$ -: ${splash_dir=/usr/share/bootsplash} - [[ -f /etc/sysconfig/bootsplash ]] && source /etc/sysconfig/bootsplash [[ -z $THEME ]] && THEME=Mandriva [ $# = 2 ] || { echo "usage: $0 <initrd> <resolution>"; exit 1; } initrd_file=$1 -vgamode=$2 - -if [[ $vgamode == 640* ]];then - resolution=640x480 -elif [[ $vgamode == 800* ]];then - resolution=800x600 -elif [[ $vgamode == 1024* ]];then - resolution=1024x768 -elif [[ $vgamode == 1280* ]];then - resolution=1280x1024 -elif [[ $vgamode == 1600* ]];then - resolution=1600x1200 -else - echo "unknown resolution \"$vgamode\"" - [ "$vgamode" = "auto" ] && echo 'resolution "auto" is not handled anymore' - exit 1 -fi -rm -f $splash_dir/themes/current -ln -s $THEME $splash_dir/themes/current +plymouth-set-default-theme $THEME -if [ -x /sbin/splashy_config ]; then - DURING_MAKE_BOOTSPLASH=1 /sbin/splashy_config -s $THEME-$resolution -fi - -$splash_dir/scripts/make-boot-splash-raw $initrd_file $resolution $THEME || exit 1 +$splash_dir/scripts/make-boot-splash-raw $initrd_file $THEME || exit 1 if [ -z "$DURING_INSTALL" ]; then $splash_dir/scripts/switch-themes -u |