if [ `uname` != 'Linux' ] then echo "You are not running on a Linux system. exiting" exit fi cd /tmp # rpm -ivh --nodeps ftp://linux/linux/current/i386/RedHat/RPMS/yppasswd-0.9-3.i386.rpm # # #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 "fixing permission of /etc/cron.daily/tmpwatch" chmod +x /etc/cron.daily/tmpwatch # echo "add root cron job to backup local /var/spool/mail to /User/inboxbackup" #cp /Users/inboxcronbackup /Users/inboxcronbackup.org.$$ cp configfiles/inboxcronbackup /root/inboxcronbackup crontab /root/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 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 "fixing flpr permissions" chmod 4555 /usr/local/bin/flp* # # echo "DOING PRINTCAP STUFF NOW" cp /etc/printcap /etc/printcap.org.$$ cp configfiles/printcap /etc/printcap mkdir /var/spool/lpd/wh3e_hp5si_single mkdir /var/spool/lpd/wh3e_hp5si_double mkdir /var/spool/lpd/wh3e_tekclr mkdir /var/spool/lpd/wh3e_tekclr_trans mkdir /var/spool/lpd/wh3w_hp5si_single mkdir /var/spool/lpd/wh3w_hp5si_double mkdir /var/spool/lpd/wh3w_colorps mkdir /var/spool/lpd/wh3w_colorps_trans /sbin/chkconfig --level 35 lpd on #/etc/rc.d/init.d/lpd stop #/etc/rc.d/init.d/lpd start # echo "now doing xntp" cp /etc/rc.d/init.d/xntpd /etc/rc.d/init.d/xntpd.org.$$ cp configfiles/xntpd /etc/rc.d/init.d/xntpd /sbin/chkconfig --level 35 xntpd on #/etc/rc.d/init.d/xntpd stop #/etc/rc.d/init.d/xntpd start # # echo "now doing resolv.conf" mv /etc/resolv.conf /etc/resolv.conf.org.$$ cp configfiles/resolv.conf /etc/resolv.conf # # # echo "now doing exports" mv /etc/exports /etc/exports.org.$$ cp configfiles/exports /etc/exports # # echo "now doing nfs serving now" /sbin/chkconfig --level 35 nfs on #/usr/sbin/exportfs -a # # 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 "fixing email relay" cp /usr/lib/mh/mtstailor /usr/lib/mh/mtstailor.org.$$ cp configfiles/mtstailor /usr/lib/mh/mtstailor # echo "installing yp.conf" mv /etc/yp.conf /etc/yp.conf.org.$$ cp configfiles/yp.conf /etc/yp.conf # # echo "/root/.rhosts" mv /root/.rhosts /root/.rhosts.org.$$ cp configfiles/rhosts /root/.rhosts # # echo "Setup Complete."