#!/bin/bash # Post install script for ODS specific Linux environment # # postinstall_ods : # Created: 25 May 1999 Maarten Litmaath & Gerald Guglielmo # Modified: 27 May 1999 Gerald Guglielmo # chown to root for flpr # put /local/ups/db last in upsdb_list # # add links for shells, yp exported passwd file from fndaub expects shell # binaries in /usr/local/bin cd /usr/local/bin ln -s /bin/sh sh ln -s /bin/ksh ksh ln -s /bin/csh csh # # Setup NISDOMAIN for ODS echo "NISDOMAIN=ols743across" >> /etc/sysconfig/network # # update fstab file cd /etc cp fstab fstab.old ed -s fstab <<-EOF /floppy/s/noauto/&,user,exec/ /cdrom/s/noauto/&,user/ w q EOF echo "linux-rep.fnal.gov:/mirror/ftp/pub/mirrors /mnt/linrep nfs bg,soft,intr 0 0" >> fstab echo "/dev/fd0 /mnt/floppyd msdos noauto,user,exec 0 0" >> fstab # # add mount points for new entries in fstab file mkdir /mnt/linrep mkdir /mnt/floppyd # # update location of ups databases cd /local/ups/etc mv upsdb_list upsdb_list.old echo '/usr/products/ups_database #/usr/products/cluster_disk/d0dist/upsdb /local/ups/db' > upsdb_list exit