Help with pppdown script...


Subject: Help with pppdown script...
From: Jeff Ross (jeffross@vcn.com)
Date: Tue Sep 07 1999 - 09:47:52 MDT


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
"Error: Removed stale pid file"
exit 1
fi
echo >/dev/console "PPP link to $DEVICE terminated."
exit 0
fi
echo >/dev/console "ERROR: PPP link not active on $DEVICE
exit 1

When I run this, though, I get the following error message:

/usr/local/bin/pppdown : [: missing ']'

I've tried fooling around with various apostrophe combinations to no
avail, and I don't see a missing bracket anywhere.

Any help would sure be appreciated!

Jeff Ross



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