# @(#)rc.local 4.2 (ULTRIX) 1/25/91 /bin/hostname stein3 /etc/ifconfig ln0 140.142.56.3 broadcast 140.142.56.255 netmask 255.255.255.0 /etc/ifconfig lo0 localhost /usr/bin/uac s 0 # turn off system logging of unaligned access #/etc/bscconfig dup0 bsc 1 #/etc/bscconfig dpv0 bsc 1 echo -n 'check quotas: ' >/dev/console # /etc/quotacheck -a echo 'done.' >/dev/console /etc/quotaon -a rm -f /tmp/t1 /tmp/t2 /usr/ucb/strings /vmunix | grep '(Rev' >/tmp/t1 if test -s /tmp/t1 then cp /tmp/t1 /tmp/t2 ed - /tmp/t2 >/dev/null <<% 1s/Sys/\\ . 2d w q % VERS=`cat /tmp/t2` ed - /etc/gettytab >/dev/null <<% /default:/ /^ULTRIX/ .c $VERS\\ . w q % if test -f /usr/etc/uwsvers then echo `/usr/etc/uwsvers -q` >>/tmp/t1 fi grep -v '(Rev' /etc/motd >>/tmp/t1 cp /tmp/t1 /etc/motd rm -f /tmp/t1 fi sync # to save error log buffer only, use savecore -e if [ "$DISKLESS" ] then /etc/savecore -f /var/adm/crash/vmcore /var/adm/crash >/dev/console else /etc/savecore /var/adm/crash >/dev/console fi # # Check and save snapshot files if they are valid (VAX 8600/8650 only) # #[ -f /etc/snapcopy ] && { # /etc/snapcopy /usr/adm/snap >/dev/console #} [ -f /etc/routed ] && { /etc/routed -q & echo 'routed' >/dev/console } # RPC portmap daemon echo -n 'RPC port mapper:' >/dev/console [ -f /etc/portmap ] && { /etc/portmap ; echo ' portmap.' >/dev/console } # %BINDSTART% - BIND daemon added by "bindsetup" echo -n 'BIND daemon:' >/dev/console [ -f /usr/etc/named ] && { /usr/etc/named ; echo -n ' named' >/dev/console } echo '.' >/dev/console # %BINDEND% # %NFSSTART% - NFS daemons added by "nfssetup" echo -n 'NFS daemons:' >/dev/console [ -f /etc/mountd -a -f /etc/portmap -a -s /etc/exports ] && { /etc/mountd -i ; echo -n ' mountd -i' >/dev/console } [ -f /etc/nfsd -a -f /etc/portmap ] && { /etc/nfsd 8 ; echo -n ' nfsd' >/dev/console } [ -f /etc/biod ] && { /etc/biod 5 ; echo ' biod' >/dev/console } if [ \! "$DISKLESS" ] then echo -n 'mounting NFS directories:' >/dev/console /etc/nfs_umount -b >/dev/null 2>&1 /etc/mount -a -t nfs >/dev/console 2>&1 echo ' done.' >/dev/console fi # %NFSEND% echo -n 'local daemons:' >/dev/console # if [ -f /usr/local/etc/clockd ]; then /usr/local/etc/clockd time1.u.washington.edu echo -n ' clockd' >/dev/console elif [ -f /usr/local/etc/ntpd ]; then /usr/local/etc/ntpd; echo -n ' ntpd' >/dev/console fi if [ -f /usr/local/etc/syslogd ]; then /usr/local/etc/syslogd; echo -n ' local/syslogd' >/dev/console elif [ -f /etc/syslog ]; then /etc/syslog & echo -n ' syslog' >/dev/console fi # if [ -f /sy99/bin/Start-li ]; then # /sy99/bin/Start-li & echo -n ' li' >/dev/console # fi if [ -f /usr/etc/presto ]; then /usr/etc/presto -u; echo ' presto' >/dev/console fi # if [ -f /usr/local/etc/Start-tmsd ]; then # /usr/local/etc/Start-tmsd & echo -n ' tmsd' >/dev/console # fi # if [ -f /usr/local/etc/tpopd ]; then # /usr/local/etc/tpopd; echo -n ' tpopd' >/dev/console # fi if [ -f /sy99/bin/helper ]; then /sy99/bin/helper; echo -n ' helper' >/dev/console fi if [ -f /sy99/bin/watcher ]; then /sy99/bin/watcher; echo -n ' watcher' >/dev/console fi if [ -f /h2/ken/.bin/foible ]; then /h2/ken/.bin/foible & echo -n ' foible' >/dev/console fi if [ -f /usr/local/etc/fmaild ]; then /usr/local/etc/fmaild & echo -n ' fmaild' >/dev/console fi [ -f /usr/lib/sendmail ] && { (cd /usr/spool/mqueue; rm -f lf*) /usr/lib/sendmail -bd -q30m -om& echo -n ' sendmail' >/dev/console } # get the xlab xdm #if [ -f /usr/lib/X11/xdm/xdm ]; then # /usr/lib/X11/xdm/xdm -config /usr/lib/X11/xdm/xdm-config # echo -n ' xdm' >/dev/console #fi #if [ -f /usr/bin/X11/xdm ]; then # /usr/bin/X11/xdm -xrm 'FakeResourceClassName: nothing' # echo -n ' xdm' >/dev/console #fi if test -f /usr/local/lib/prtd/prtd; then /usr/local/lib/prtd/prtd; echo -n ' prtd' >/dev/console fi if [ -f /usr/local/etc/prtnsd ]; then /usr/local/etc/prtnsd; echo -n ' prtnsd' >/dev/console fi # Don't use this unless stein2 is in prtns_servers.h on the common source. #if [ -f /usr/local/etc/prtnsd ]; then # /usr/local/etc/prtnsd; echo -n ' prtnsd' >/dev/console #fi if [ -f /usr/local/etc/timelimit.sh ] then sh /usr/local/etc/timelimit.sh > /usr/local/etc/timelimit.log 2>&1 & echo -n ' timelimit' >/dev/console fi # Urep (bitnet) daemons # #if [ -f /usr/lib/urep/urepd ]; then # /usr/lib/urep/urepd & echo -n ' bitnet deamon ' >/dev/console #fi #if [ -f /usr/lib/urep/simpld ]; then # /usr/lib/urep/simpld & echo -n ' bitnet mailer 1 ' >/dev/console #fi #if [ -f /usr/lib/urep/sistrd ]; then # /usr/lib/urep/systrd & echo -n ' bitnet mailer 2 ' >/dev/console #fi # # Start cluster nameservice load reporting client # if [ -f /usr/local/etc/loadr ]; then /usr/local/etc/loadr; echo -n ' loadr' > /dev/console fi # Japanese input dictionary server if [ -f /usr/local/bin/Wnn4/jserver ]; then /usr/local/bin/Wnn4/jserver; echo -n ' jserver' >/dev/console fi # Suplimental inetd services if [ -f /etc/inetd.supl.conf ]; then /etc/inetd /etc/inetd.supl.conf; echo -n ' inetd.supl' >/dev/console fi # Restore PSEUDO terminal lines to root ownership and 666 permissions. # System Administrators may want to customize this for their own needs. /etc/chown root /dev/tty[p-u]*; /bin/chmod 666 /dev/tty[p-u]* echo '.' >/dev/console # # Removing Opser remnant files # echo 'Removing remnant Opser files' > /dev/console rm -f /etc/opseractive rm -f /etc/remoteopser rm -f /etc/sdnologin # rm -f /tmp/.psdata