#!/usr/bin/sh
#
# Copyright (c) 1999 Sun Microsystems, Inc., all rights reserved.
#

#
# This script is designed to run once the Solaris CD has been mounted.
# It generates a number of system info data files which the
# Solaris installation wizards depend.
#
# getInstallLangs expects the OS image is at /cdrom

SBIN=/sbin

#
# Get the locale information off of the solaris image
#
$SBIN/getInstallLangs /tmp/locales.out & gilpid=$!

# Parse the clustertoc file
/usr/sbin/install.d/parse_dynamic_clustertoc $ pdcpid=$!

#
# get the disk list
#
$SBIN/getdisk -l > /tmp/getdisk.out
$SBIN/getpart > /webstart/boot/partinfo.out
$SBIN/getpart -d > /webstart/boot/diskinfo.out

#
# get the boot disk
#
/usr/sbin/install.d/find_device -b -f /tmp/eeprom.out > /dev/null 2>&1

#
# get the physical memory size and machine architecture
#
$SBIN/getmemory > /tmp/memory.out
$SBIN/uname -p > /tmp/uname_platform.out
$SBIN/uname -m > /tmp/uname.out

wait $gilpid
wait $pdcpid
