#!/bin/ash.static

# we need to upgrade these packages anyway.
echo "Upgrading/installing minimum packages..."

if [ -d /mnt/cdrom/TurboLinux/RPMS ] ; then
   PKGDIR="/mnt/cdrom/TurboLinux/RPMS"
else
   PKGDIR="."
fi

rpm -Uvh --nodeps --force $PKGDIR/glibc-2.0.7-20TL.i386.rpm
rpm -Uvh --nodeps --force $PKGDIR/bash-2.02.1-4TL.i386.rpm
rpm -Uvh --nodeps --force $PKGDIR/kon2-0.3.8-10TL.i386.rpm
rpm -Uvh --nodeps --force $PKGDIR/konfont-0.1-2.i386.rpm

# use special kon.cfg file.
mv -f /etc/kon.cfg /etc/kon.cfg.upgrade_backup
cp -f kon.cfg /etc/kon.cfg

# prepare for japanese output.
LANG=ja_JP.ujis
unset LANGUAGE
export LANG

# run the real upgrader.
exec kon -e ./upgrade.sh
