#!/bin/sh
############################################################################
# Begin $rc_base/init.d/startup
#
# Description : Removes etc symlink and untars etc and root
#
# Authors     : Original by Chris Lingard, chris@stockwith.co.uk
#               Modified by Jeremy Huntwork, jhuntwork@linuxfromscratch.org
#
# Date        : 2005-01-26
#
############################################################################

. /etc/sysconfig/rc
. $rc_functions

case "$1" in
	start)
		boot_mesg "Unpacking files to /etc..."
		cd /
		cp /etc/locatedb /var/lib/locate/
		/bin/rm  /etc /init
		/bin/tar xjf /.cdrom/etc.tar.bz2
		echo_ok
		boot_mesg "Unpacking files to /root..."
		/bin/tar xjf /.cdrom/root.tar.bz2
		echo_ok
		;;

	*)
		echo "Usage: $0 {start}"
		exit 1
		;;
esac

# End $rc_base/init.d/
