[3048] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

Post install script

daemon@ATHENA.MIT.EDU (Alex Coventry)
Thu Oct 5 23:09:07 2000

Date: Thu, 5 Oct 2000 23:08:58 -0400 (EDT)
Message-Id: <200010060308.XAA276055@steve-dallas.mit.edu>
From: Alex Coventry <alex_c@MIT.EDU>
To: Linux-Dev <linux-dev@MIT.EDU>



Hi.  Here is the post install script that is currently run by the SIPB
Athena-Linux installer.  If anyone notices any glaring discrepancies
with the IS Athena-Linux install, could you let me know about them?

Alex.

#!/bin/sh

ATHENAVERSION=8.4.0
ROOT=/

# Get network address:
ADDR=`grep -i ipaddr /etc/sysconfig/network-scripts/ifcfg-eth0  \
	|sed -e 's/^.*=//'`
HOSTNAME=`chroot $ROOT host $ADDR | awk '{print $5}' | tr '[A-Z]' '[a-z]'`

# Change default runlevel to 5 (X11) 
$ROOT/bin/sed -e 's/id:3/id:5/' < $ROOT/etc/inittab > /tmp/inittab
mv /tmp/inittab $ROOT/etc/inittab


echo "Installed by SIPB Installer on `date`" > $ROOT/etc/athena/version
echo -n "Athena Workstation (linux) Version " >> $ROOT/etc/athena/version
echo -n "$ATHENAVERSION " >> $ROOT/etc/athena/version
TZ=US/Eastern date >> $ROOT/etc/athena/version

MACHINE=`uname -m`
OS=`uname -s`

$ROOT/bin/sed	-e "s/localhost.localdomain/$HOSTNAME/" \
		-e "s/PUBLIC=false/PUBLIC=false/"  \
		-e "s/ADDR=/ADDR=$ADDR/" \
		-e "s/HOST=/HOST=$HOSTNAME/" \
		-e "s/MACHINE=i[3456]86/MACHINE=$MACHINE/"  \
		$ROOT/etc/athena/rc.conf > /tmp/rc.conf

cat <<eof >>/tmp/rc.conf
AFSCLIENT=true;		export AFSCLIENT;	#  AFS client
AFSADJUST=true;		export AFSADJUST;	#  Adjust AFS cache-size?
eof

mv /tmp/rc.conf $ROOT/etc/athena/rc.conf


touch /var/athena/release-rpms


home help back first fref pref prev next nref lref last post