DragonFly submit List (threaded) for 2003-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
rcrun: ppp-user patch
Hi !
I know my last one wasn't that glorious *sigh*,
but this one works at least...
Cheers
Peter
--
<peter.kadau@xxxxxxxxxxxxxxxx>
Campus der Max-Planck-Institute Tübingen
Netzwerk- und Systemadministration
Tel: +49 7071 601 598
Fax: +49 7071 601 616
--- ppp-user.orig Sat Dec 13 12:39:36 2003
+++ ppp-user Mon Dec 15 19:58:39 2003
@@ -13,7 +13,7 @@
name="ppp"
rcvar="ppp_enable"
start_cmd="ppp_start"
-stop_cmd=":"
+stop_cmd="ppp_stop"
ppp_start()
{
@@ -42,6 +42,18 @@
# Re-Sync ipfilter so it picks up any new network interfaces
#
+ /etc/rc.d/ipfilter resync
+}
+
+ppp_stop()
+{
+ pids=`check_process /usr/sbin/ppp`
+ if [ -n "${pids}" ]; then
+ for pid in ${pids}; do
+ kill ${pid}
+ done
+ wait_for_pids ${pids}
+ fi
/etc/rc.d/ipfilter resync
}
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]