#!/bin/sh
echo "Final steps, system will be prepared with some extra packages"
echo "these packages are needed for the plesk software. Otherwise, "
echo "your installer have no go ! "
sleep 5s
rpm --import /usr/share/rhn/RPM-GPG-KEY
rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
wget --directory-prefix=/usr/src/kickstart http://www.mijn-sleutel.net/download/ntp-4.1.2-5.i386.rpm
wget --directory-prefix=/usr/src/kickstart http://www.mijn-sleutel.net/download/libcap-1.10-16.i386.rpm
wget --directory-prefix=/usr/src/kickstart http://www.mijn-sleutel.net/download/sources
wget --directory-prefix=/usr/src/kickstart http://www.mijn-sleutel.net/download/yum.conf
rm -f /etc/sysconfig/rhn/sources
rm -f /etc/yum.conf
cp /usr/src/kickstart/sources /etc/sysconfig/rhn
cp /usr/src/kickstart/yum.conf /etc
rpm -Uhv /usr/src/kickstart/*rpm
up2date sharutils
up2date compat-libstdc++
up2date -u > /usr/src/kickstart/up2date_full.log
up2date -f kernel > /usr/src/kickstart/up2date_kernel.log
echo "time for the reboot, the root password = tested"
/sbin/chkconfig --del runonce
