Magellan Linux

Diff of /trunk/ppp/ppp.rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 304 by niro, Sat Aug 18 18:56:38 2007 UTC revision 305 by niro, Sun Aug 19 02:32:17 2007 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /root/magellan-cvs/src/ppp/ppp.rc,v 1.2 2007-08-18 18:56:38 niro Exp $  # $Header: /root/magellan-cvs/src/ppp/ppp.rc,v 1.3 2007-08-19 02:32:17 niro Exp $
3    
4  #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k  #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5  #%start: 30  #%start: 30
# Line 19  case "$1" in Line 19  case "$1" in
19   start)   start)
20   echo -e ${COLOREDSTAR}"Starting PPP deamon ..."   echo -e ${COLOREDSTAR}"Starting PPP deamon ..."
21   [[ -z ${PPPD_PID} ]] && pon   [[ -z ${PPPD_PID} ]] && pon
22   if [ $? -gt 0 ]   evaluate_retval
  then  
  print_status failure  
  else  
  start-stop-daemon --start --quiet \  
  --pidfile /var/run/pppd.pid --exec /usr/sbin/pppd  
  print_status success  
  fi  
23    
24   update_svcstatus $1   update_svcstatus $1
25   splash svc_started "$(basename $0)" 0   splash svc_started "$(basename $0)" 0
# Line 35  case "$1" in Line 28  case "$1" in
28   stop)   stop)
29   echo -e ${COLOREDSTAR}"Stopping PPP daemon ..."   echo -e ${COLOREDSTAR}"Stopping PPP daemon ..."
30   [[ ! -z ${PPPD_PID} ]] && poff -a &> /dev/null   [[ ! -z ${PPPD_PID} ]] && poff -a &> /dev/null
31   if [ $? -gt 0 ]   evaluate_retval
  then  
  print_status failure  
  else  
  start-stop-daemon --stop --quiet --pidfile /var/run/pppd.pid  
  print_status success  
  fi  
32    
33   update_svcstatus $1   update_svcstatus $1
34   splash svc_stopped "$(basename $0)" 0   splash svc_stopped "$(basename $0)" 0

Legend:
Removed from v.304  
changed lines
  Added in v.305