Package branding-simply-linux-bootloader: Scripts

Post install

[ "$1" -eq 1 ] || exit 0
ln -snf slinux/message /boot/splash/message
. /etc/sysconfig/i18n
lang=$(echo $LANG | cut -d. -f 1)
cd boot/splash/slinux/
echo $lang > lang
[ "$lang" = "C" ] || echo lang | cpio -o --append -F message
. shell-config
shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/slinux/theme.txt
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_NORMAL white/dark-gray
shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT black/white
Pre install

[ -s /usr/share/gfxboot/slinux ] && rm -fr  /usr/share/gfxboot/slinux ||:
[ -s /boot/splash/slinux ] && rm -fr  /boot/splash/slinux ||:
Pre uninstall

1
2
3
[ "$1" -eq 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "slinux/message" ] ||
    rm -f /boot/splash/message