#!/bin/sh 
#
# %W% %E%
#
# Copyright (c) 1999 Sun Microsystems Inc.
# All Rights Reserved
#

SCRIPT=`echo $0 | sed 's,.*/,,'`

warning() {
	echo "$SCRIPT: WARNING: $*" > /dev/console
}

# Define the KU14 target location
KU14_DIR=$ROOTDIR/usr/platform/SUNW,Ultra-4FT/lib

# Validate the directory
[ -d $KU14_DIR ] ||
	error "Directory not found:  $KU14_DIR"

cd $KU14_DIR ||
	warning "cd(1) failed for directory $KU14_DIR"

# Define and validate the archive file
KU14_ARCH=KU14.cpio
[ -f $KU14_ARCH ] ||
	error "KU14 archive file not found: $KU14_ARCH"

# Found the archive, now attempt to unarchive it
$ROOTDIR/usr/bin/cpio -icmduVBI $KU14_ARCH || {
	warning "cpio(1) failed for file: $KU14_ARCH"
	exit 0
}

exit 0

