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

  1.  
  2. #    "Run Commands" executed when the system is changing to init state 1
  3. #
  4.  
  5. . /etc/TIMEZONE
  6. set `/sbin/who -r`
  7. if [ $9 = "S" ]
  8. then
  9.     echo 'The system is coming up for administration.  Please wait.'
  10.     BOOT=yes
  11.  
  12. elif [ $7 = "1" ]
  13. then
  14.     echo 'Changing to state 1.'
  15.     if [ -d /etc/rc1.d ]
  16.     then
  17.         for f in /etc/rc1.d/K*
  18.         {
  19.             if [ -s ${f} ]
  20.             then
  21.                 /sbin/sh ${f} stop
  22.             fi
  23.         }
  24.     fi
  25. fi
  26.  
  27. if [ -d /etc/rc1.d ]
  28. then
  29.     for f in /etc/rc1.d/S*
  30.     {
  31.         if [ -s ${f} ]
  32.         then
  33.             /sbin/sh ${f} start
  34.         fi
  35.     }
  36. fi
  37.  
  38. if [ "${BOOT}" = "yes" -a $7 = "1" ]
  39. then
  40.     echo 'The system is ready for administration.'
  41. elif [ $7 = "1" ]
  42. then
  43.     echo 'Change to state 1 has been completed.'
  44. fi
  45.  
  46.