daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest May 20th, 2012 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. maddinw@Ubuntukiste:~$ cat rc.local.dump
  2. #! /bin/sh
  3. ### BEGIN INIT INFO
  4. # Provides:          rc.local
  5. # Required-Start:    $remote_fs $syslog $all
  6. # Required-Stop:
  7. # Default-Start:     2 3 4 5
  8. # Default-Stop:
  9. # Short-Description: Run /etc/rc.local if it exist
  10. ### END INIT INFO
  11.  
  12.  
  13. PATH=/sbin:/usr/sbin:/bin:/usr/bin
  14.  
  15. . /lib/init/vars.sh
  16. . /lib/lsb/init-functions
  17.  
  18. do_start() {
  19.         if [ -x /etc/rc.local ]; then
  20.                 [ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
  21.                 /etc/rc.local
  22.                 ES=$?
  23.                 [ "$VERBOSE" != no ] && log_end_msg $ES
  24.                 return $ES
  25.         fi
  26. }
  27.  
  28. case "$1" in
  29.     start)
  30.         do_start
  31.         ;;
  32.     restart|reload|force-reload)
  33.         echo "Error: argument '$1' not supported" >&2
  34.         exit 3
  35.         ;;
  36.     stop)
  37.         ;;
  38.     *)
  39.         echo "Usage: $0 start|stop" >&2
  40.         exit 3
  41.         ;;
  42. esac
  43. sudo su maddinw -c ssh -D 8000 -fN maddinw@ssh.silenceisdefeat.com
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top