home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 5.ddi / sbin / rc3 < prev    next >
Encoding:
Text File  |  1990-12-08  |  415 b   |  32 lines

  1.  
  2.  
  3.  
  4.  
  5. #    "Run Commands" executed when the system is changing to init state 3,
  6. #    same as state 2 (multi-user) but with remote file sharing.
  7. set `/sbin/who -r`
  8. if [ -d /etc/rc3.d ]
  9. then
  10.     for f in /etc/rc3.d/K*
  11.     {
  12.         if [ -s ${f} ]
  13.         then
  14.             /sbin/sh ${f} stop
  15.         fi
  16.     }
  17.  
  18.     for f in /etc/rc3.d/S*
  19.     {
  20.         if [ -s ${f} ]
  21.         then
  22.             /sbin/sh ${f} start
  23.         fi
  24.     }
  25. fi
  26. if [ $9 = 'S' -o $9 = '1' ]
  27. then
  28.     echo '
  29. The system is ready.'
  30. fi
  31.  
  32.