home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / ROOT_GZ / root / etc / rc.d / rc.M < prev    next >
Encoding:
Text File  |  1995-05-29  |  1.9 KB  |  71 lines

  1. #!/bin/sh
  2. #
  3. # rc.M        This file is executed by init(8) when the system is being
  4. #        initialized for one of the "multi user" run levels (i.e.
  5. #        levels 1 through 6).  It usually does mounting of file
  6. #        systems et al.
  7. #
  8. # Version:    @(#)/etc/rc.d/rc.M    2.02    02/26/93
  9. #
  10. # Author:    Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  11. #        Heavily modified by Patrick Volkerding <volkerdi@ftp.cdrom.com>
  12. #
  13.  
  14. # Tell the viewers what's going to happen...
  15. echo "Going multiuser... ($BOOT)"
  16.  
  17. # Screen blanks after 15 minutes idle time.
  18. /bin/setterm -blank 15 -msg off
  19.  
  20. # Start crond (Dillon's crond):
  21. # If you want cron to actually log activity to /var/adm/cron, then change
  22. # -l10 to -l8 to increase the logging level.
  23. /usr/sbin/crond >>/var/adm/cron 2>&1
  24.  
  25. # If there's no /etc/HOSTNAME, fall back on this default:
  26. if [ ! -r /etc/HOSTNAME ]; then
  27.     echo "wolf.ecs.soton.ac.uk" > /etc/HOSTNAME
  28. fi
  29.  
  30. # Take care of syslog files
  31. if [ -x /var/adm ]; then
  32.   /etc/rc.d/rc.syslogd
  33. fi
  34.  
  35. # Initialize the NET subsystem.
  36. if [ -x /etc/rc.d/rc.inet1 -a "x$BOOT" != "xvmlinux.min" ];
  37. then
  38.     /bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .`
  39.     /bin/domainname `cat /etc/HOSTNAME | cut -f2- -d .`
  40.     /bin/sh /etc/rc.d/rc.inet1
  41.     /bin/sh /etc/rc.d/rc.inet2
  42. else
  43.     /sbin/hostname_notcp `cat /etc/HOSTNAME | cut -f1 -d .`
  44.     /bin/domainname `cat /etc/HOSTNAME | cut -f2- -d .`
  45.     /usr/sbin/syslogd
  46. #    /usr/sbin/klogd
  47.     /usr/sbin/lpd
  48. fi
  49.  
  50. # Remove stale locks (must be done after mount -a!)
  51. /bin/rm -f /var/spool/locks/* /var/spool/uucp/LCK..* /tmp/.X*lock 1> /dev/null 2> /dev/null
  52.  
  53. # Remove stale hunt sockets so the game can start.
  54. if [ -r /tmp/hunt -o -r /tmp/hunt.stats ]; then
  55.     echo "Removing your stale hunt sockets from /tmp..."
  56.     /bin/rm -f /tmp/hunt*
  57. fi
  58.  
  59. # Update all the shared library links automatically
  60. #  /sbin/ldconfig
  61.  
  62. # Load a custom screen font if the user has an rc.font script.
  63. if [ -r /etc/rc.d/rc.font ]; then
  64.   /etc/rc.d/rc.font
  65. fi
  66.  
  67. # Start the local setup procedure.
  68. exec /etc/rc.d/rc.local
  69.  
  70. # All done.
  71.