>From: John DiMarco <jdd@cdf.toronto.edu>
>To: casper@fwi.uva.nl
>Subject: auto-install
>Date: 	Thu, 12 May 1994 11:20:24 -0400

For your information:

I noticed the discussion about auto-install and automating the timezone/netmask
query on comp.unix.solaris. I don't run NIS, so can't completely satisfy
the auto-install process unless I modify the CD-rom image (copied to disk,
of course). Here's the (extremely minor) change I made to 
solaris_2_3/export/exec/kvm/sparc.sun4c.Solaris_2.3/sbin/sysconfig

(a similar change needs to be made for each kernel architecture supported)

============================================================================
*** /tmp/T0a003oP       Thu May 12 11:16:55 1994
--- sysconfig   Wed May 11 20:11:23 1994
***************
*** 45,50 ****
--- 45,55 ----
  echo " rpcbind\c"
  /usr/sbin/rpcbind > /dev/console 2>&1
  
+ if [ -x /tmp/install_config/localconfig ];  then
+ echo " localconfig\c"
+ /tmp/install_config/localconfig > /dev/console 2>&1
+ fi
+ 
  # Configure NIS or NIS+
  echo " sysidnis\c"
  /usr/sbin/sysidnis > /dev/console 2>&1
============================================================================

localconfig looks like this:

============================================================================
#!/bin/sh
# localconfig
# set up netmasks, timezone, and fix up .sysIDtool.state
STATE=/tmp/root/etc/.sysIDtool.state
echo 128.100.0.0 255.255.255.0 >/tmp/root/etc/inet/netmasks
echo 'TZ=Canada/Eastern' >/tmp/root/etc/default/init
ed $STATE >/dev/null <<end_of_edit
/Network has subnets/s/0/1/
/System previously configured/s/0/1
w
q
end_of_edit
============================================================================

All pretty simple and straightforward.

Regards,

John
--
John DiMarco                                              jdd@cdf.toronto.edu
Computing Disciplines Facility Systems Manager            jdd@cdf.utoronto.ca
University of Toronto                                     EA201B,(416)978-1928
