# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# 
# Filename: target/tardiba/build.sh
# Copyright (C) 2006 - 2007 The OpenSDE Project
# 
# More information can be found in the files COPYING and README.
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---

. target/mnemosyne/build.sh

custom_grubsplash() {
echo_status "Changing iso's grub to use Expert Software theme..."
cp -f $base/target/tardiba/files/expert-bootsplash.xpm.gz $isofsdir/boot/
sed -i  -e 's,opensde\-grub\-splash\.xpm,expert\-bootsplash\.xpm,' \
	-e 's,000000,e6e6e6,' \
	-e 's,e4e6e3,4c4c4c,' \
	-e 's,OpenSDE,Tardiba Database Server,' \
	 $isofsdir/boot/grub/menu.lst

echo_status "Done."
}

[ "$SDECFG_TRG_MNEMOSYNE_BOOT" != 'HD' ] || custom_grubsplash