Listing 2: Master miniroot configuration file; mrconfig file
# Restore SGI System disk from backup tape over the network
version 1
# Log RoboInst session to this IP, MUST be IP not name
loghost 10.7.7.177
onerror wait
## WARNING: disks will be wiped!
init echo "Running disksetup: disk will be wiped"
disksetup
init echo The machine type is $SGI_MACHINE
partition systemdisk standard root
#the poor-man's miniroot nameserver
init echo "appending to miniroot hosts file..."
init cat $SGI_CUSTOM/hosts >> /etc/hosts 2>/dev/null
preinst $SGI_CUSTOM/mypreinst
#preinst sh
# Install the sash so machine can boot
if [ "$SGI_CPUARCH" = R10000 -o "$SGI_CPUARCH" = R12000 ] then
postinst dvhtool -v creat $SGI_CUSTOM/StandardFiles/sash64 sash \
/dev/rdsk/dks0d1vh
else
postinst dvhtool -v creat $SGI_CUSTOM/StandardFiles/sashARCS sash \
/dev/rdsk/dks0d1vh
endif
|