/[baselayout]/branches/rc-scripts-1_6/net-scripts/net.modules.d/ipppd
Gentoo

Diff of /branches/rc-scripts-1_6/net-scripts/net.modules.d/ipppd

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

Revision 841 Revision 842
83 83
84 ipppd_check_installed || return 0 84 ipppd_check_installed || return 0
85 [[ ! -f ${pidfile} ]] && return 0 85 [[ ! -f ${pidfile} ]] && return 0
86 86
87 clean_pidfile ${pidfile} && return 0 87 clean_pidfile ${pidfile} && return 0
88 local pid=$( cat ${pidfile} ) i 88 local pid=$( cat ${pidfile} ) r=0
89 89
90 einfo "Stopping ipppd for ${iface}" 90 einfo "Stopping ipppd for ${iface}"
91 kill ${pid} 91 kill -s TERM ${pid}
92 for (( i=0; i<10; i++ )); do 92 if ! process_finished ${pid} ipppd 10 ; then
93 clean_pidfile ${pidfile} && break 93 kill -s KILL ${pid}
94 done 94 process_finished ${pid} ipppd 10 || r=1
95 [[ ${i} == 10 ]] && kill -s KILL ${pid} 95 fi
96 96
97 clean_pidfile ${pidfile} 97 eend ${r}
98 eend $? || return $?
99
100 return 0 98 return ${r}
101} 99}

Legend:
Removed from v.841  
changed lines
  Added in v.842

  ViewVC Help
Powered by ViewVC 1.1.20