if [ `uname` != 'Linux' ] then echo "You are not running on a Linux system. exiting" exit fi # WORKGROUP=`cat /etc/workgroup` # # #The following change is because some people are still using old versions # of the fue stuff echo "making a symbolic link from /usr/bin/less to /usr/local/bin/less" ln -s /usr/bin/less /usr/local/bin/less # # # echo "add root cron job to backup local /var/spool/mail to /User/inboxbackup" mkdir /var/spool/cronsrc cp /etc/$WORKGROUP/configfiles/inboxcronbackup /var/spool/cronsrc/inboxcronbackup crontab /var/spool/cronsrc/inboxcronbackup # # echo "adding zip entries to fstab for hdd zip drives" grep --silent /dev/hdd /etc/fstab if [ $? -ne 0 ] then grep --silent IOMEGA /var/log/dmesg if [ $? -eq 0 ] then grep --silent hdd /var/log/dmesg if [ $? -eq 0 ] then cp /etc/fstab /etc/fstab.org cat /etc/fstab /etc/$WORKGROUP/configfiles/fstab.ziphdd >/tmp/fstab.tmp cp /tmp/fstab.tmp /etc/fstab echo "Just added zip entries to /etc/fstab" fi fi fi # # echo "now fixing floppy and cdrom for user mounts" cp /etc/fstab /etc/fstab.org.$$ sed -e "/floppy/s/noauto /noauto,user/" -e "/iso9660/s/noauto,ro /noauto,ro,user/" /etc/fstab >/tmp/fstab.$$ cp /tmp/fstab.$$ /etc/fstab # # # echo "setting up printing" cp /etc/printcap /etc/printcap.org.$$ cp /etc/$WORKGROUP/configfiles/printcap /etc/printcap source /etc/$WORKGROUP/scripts/make_spooldirs.sh source /etc/$WORKGROUP/scripts/spooldirs.sh /sbin/chkconfig --level 35 lpd on # # echo "now doing resolv.conf" mv /etc/resolv.conf /etc/resolv.conf.org.$$ cp /etc/$WORKGROUP/configfiles/resolv.conf /etc/resolv.conf # # # echo "now doing exports for nfs serving" mv /etc/exports /etc/exports.org.$$ cp /etc/$WORKGROUP/configfiles/exports /etc/exports # # echo "now doing nfs serving now" /sbin/chkconfig --level 35 nfs on # # #echo "now doing inetd.conf" #mv /etc/inetd.conf /etc/inetd.conf.org.$$ #cp configfiles/inetd.conf /etc/inetd.conf # #echo "now doing /etc/inittab" #mv /etc/inittab /etc/inittab.org.$$ #cp configfiles/inittab /etc/inittab # # # echo "setting up nis" mv /etc/yp.conf /etc/yp.conf.org.$$ cp /etc/$WORKGROUP/configfiles/yp.conf /etc/yp.conf /sbin/chkconfig --level 35 autofs on /sbin/chkconfig --level 35 ypbind on echo 'NISDOMAIN=theory.fnal.gov' >> /etc/sysconfig/network # # echo "/root/.rhosts" mv /root/.rhosts /root/.rhosts.org.$$ cp /etc/$WORKGROUP/configfiles/rhosts /root/.rhosts # # echo "turning on portmap" chkconfig --level 35 portmap on # # echo "Setup Complete."