Re: Help with pppdown script...


Subject: Re: Help with pppdown script...
From: Jim Cole (greyleaf@yggdrasill.net)
Date: Tue Sep 07 1999 - 22:55:42 MDT


Jeff Ross wrote:

> Hi--
> I can get ppp up and running okay now, but I'm having some trouble
> bringing it back down. The script suggested is pretty simple:
>
> #!/bin/bash
> DEVICE=ppp0
> if [-r /var/run/$DEVICE.pid]; then 'kill /var/run/$DEVICE.pid'
> if [!"?" = "0"]; then rm-f /var/run/$DEVICE.pid echo >/dev/console

Hi. Looks like someone else already pointed out the cause of the missing
']' message. However, it looks like you also need to change the rm-f to
rm -f to make the script work correctly.

Jim Cole



This archive was generated by hypermail 2a24 : Fri Oct 01 1999 - 16:13:43 MDT