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 / init.d / rc.local < prev    next >
Encoding:
Text File  |  2007-04-10  |  522 b   |  30 lines

  1. #! /bin/sh
  2.  
  3. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  4. [ -f /etc/default/rcS ] && . /etc/default/rcS
  5. . /lib/lsb/init-functions
  6.  
  7. do_start() {
  8.     if [ -x /etc/rc.local ]; then
  9.         log_begin_msg "Running local boot scripts (/etc/rc.local)"
  10.         /etc/rc.local
  11.         log_end_msg $?
  12.     fi
  13. }
  14.  
  15. case "$1" in
  16.     start)
  17.     do_start
  18.         ;;
  19.     restart|reload|force-reload)
  20.         echo "Error: argument '$1' not supported" >&2
  21.         exit 3
  22.         ;;
  23.     stop)
  24.         ;;
  25.     *)
  26.         echo "Usage: $0 start|stop" >&2
  27.         exit 3
  28.         ;;
  29. esac
  30.