home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / event.d / rc6 < prev    next >
Encoding:
Text File  |  2007-03-11  |  422 b   |  24 lines

  1. # rc6 - runlevel 6 compatibility
  2. #
  3. # This task runs the old sysv-rc runlevel 6 ("reboot") scripts.
  4.  
  5. start on runlevel 6
  6.  
  7. stop on runlevel [!6]
  8.  
  9. console output
  10. script
  11.     set $(runlevel || true)
  12.     if [ "$2" != "0" ] && [ "$2" != "6" ]; then
  13.         set $(runlevel --set 6 || true)
  14.         fi
  15.  
  16.     if [ "$1" != "unknown" ]; then
  17.         PREVLEVEL=$1
  18.         RUNLEVEL=$2
  19.         export PREVLEVEL RUNLEVEL
  20.     fi
  21.  
  22.     exec /etc/init.d/rc 6
  23. end script
  24.