home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / contents / scripts / tcpip < prev    next >
Encoding:
Text File  |  1997-08-25  |  1.3 KB  |  35 lines

  1. ( cd sbin ; rm -rf netconfig )
  2. ( cd sbin ; ln -sf netconfig.color netconfig )
  3. ( cd usr/sbin ; rm -rf in.ntalkd )
  4. ( cd usr/sbin ; ln -sf in.talkd in.ntalkd )
  5. ( cd usr/bin ; rm -rf ntalk )
  6. ( cd usr/bin ; ln -sf talk ntalk )
  7. ( cd usr/bin ; rm -rf whois )
  8. ( cd usr/bin ; ln -sf fwhois whois )
  9. ( cd usr/bin ; rm -rf inews )
  10. ( cd usr/bin ; ln -sf inews-nntp inews )
  11. ( cd bin ; rm -rf dnsdomainname )
  12. ( cd bin ; ln -sf hostname dnsdomainname )
  13. ( cd bin ; rm -rf nisdomainname )
  14. ( cd bin ; ln -sf hostname nisdomainname )
  15. ( cd bin ; rm -rf ypdomainname )
  16. ( cd bin ; ln -sf hostname ypdomainname )
  17. # OK, we're going to try a new approach.  For the original set of /etc config
  18. # files, if the file exists in /etc already, we don't copy the new one into
  19. # place.  tcpip.tgz is really one of the few packages in Slackware to contain
  20. # a lot of configuration files, and the "starter" files in /etc have changed
  21. # *very little* over the years.  If we *really* want to force replacement of
  22. # one of these files, we can always add another /etc directory to this package,
  23. # right?  As it is, 99% of the people who already have these files don't want
  24. # them replaced.
  25. cd etc-incoming
  26. for file in * */* ; do
  27.  if [ ! -d file ]; then # file is not a directory
  28.   if [ ! -r ../etc/$file ]; then # file isn't already in /etc, so copy it.
  29.    cp -a $file ../etc/$file
  30.   fi
  31.  fi
  32. done
  33. cd ..
  34. rm -rf etc-incoming
  35.