Re: pon and poff -- need to be updated....
On Tue, 1 Jul 1997 10:10:43 -0500, Jeff Noxon wrote:
>> >On Jun 30, Dave Cinege wrote
>> >> Shouldn't pon/poff contain the following instead of full scripts?
>> >
>> >What about those of us who don't start PPP at boot?
>>
>> /etc/init.d/ppp works fine either way. Take a look at it.
>
>No, it doesn't. It exits if the file ppp_on_boot doesn't exist:
>
>#! /bin/sh
># /etc/init.d/ppp: start or stop PPP.
>
>FLAGS="start 20 2 3 4 5 . stop 20 0 1 6 ."
># NO_RESTART_ON_UPGRADE
>
>test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
OK, forgot about this. So then we need to edit /etc/init.d/ppp
This should do it:
if [ $2 -ne '"-m" ] || [ $2 -ne "--manual" ]; then
test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
fi
pon-
/etc/init.d/ppp start -m
poff-
/etc/init.d/ppp stop -m
Fixed!
>> I edited pon and poff on my router. I regularly use it to start and stop ppp
>> channels on the fly. (I'm running EQL)
>
>The current behavior suits me just fine,
Don't care if it suits anybody. It is sloppy, and more work to maintain.
>and it also performs some permission checks.
Basiclly usless. I believe SSD already does this.
------------------------------------------------------------------
Elite MicroComputers 908-541-4214 http://www.psychosis.com/emc/
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . Trouble?
e-mail to templin@bucknell.edu .
Reply to: