home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NETKIT-A.06 / NETKIT-A / NetKit-A-0.06 / etc / rc.net < prev    next >
Encoding:
Text File  |  1994-08-11  |  1.4 KB  |  53 lines

  1. #!/bin/sh
  2.  
  3. # Set the host name. You can use the fully qualified domain name (FQDN) or 
  4. # any short alias name you have specified for your host.
  5. if test -f /etc/HOSTNAME; then
  6.     hostname `cat /etc/HOSTNAME`
  7. fi
  8.  
  9. # Attach the loopback device. Never touch these two lines! They have
  10. # to stay with the IP address 127.0.0.1!
  11. ifconfig lo 127.0.0.1
  12. route add 127.0.0.1
  13.  
  14. # If you have a ethernet card, uncomment and change the following 3 lines.
  15. #ifconfig eth0 134.96.5.93 netmask 255.255.255.0 broadcast 134.96.5.255
  16. #route -n add 134.96.5.0 netmask 255.255.255.0
  17. #route -n add default gw 134.96.5.1 netmask 0.0.0.0
  18.  
  19. # Mount all networked filesystems (NFS).
  20. mount -a -t nfs
  21.  
  22. if test -x /usr/sbin/portmap; then    # always start the SUN RPC Portmapper
  23.     /usr/sbin/portmap
  24. fi
  25.  
  26. if test -x /usr/sbin/inetd; then        # always start the INET SuperServer
  27.     /usr/sbin/inetd
  28. fi
  29.  
  30. # Start the NAMED/BIND name server. Enable this, if you want to use this
  31. # PC as a name *server*. You don't need it, if you use only other computers
  32. # as name servers.
  33. #if [ -x /etc/named ]; then
  34. #    /etc/named
  35. #fi
  36.  
  37. # Start the printer daemon.
  38. #if test -x /usr/sbin/lpd; then
  39. #    /usr/sbin/lpd
  40. #fi
  41.  
  42. # Start the NFS daemon. You only need this one, if you *export* one of
  43. # your local filesystems to some other computers via network.
  44. # See "man exports" for more. (/etc/exports)
  45. if test -x /usr/sbin/rpc.nfsd; then
  46.     /usr/sbin/rpc.nfsd
  47.     /usr/sbin/rpc.mountd
  48. fi
  49.  
  50. #/usr/lib/news/etc/rc.news &
  51.  
  52. # End.
  53.