summaryrefslogtreecommitdiff
path: root/etc/init.d/uanytun
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-12-16 23:02:03 +0000
committerChristian Pointner <equinox@anytun.org>2009-12-16 23:02:03 +0000
commitc4d5ed3d4b88fd7d9d3fd56a0d79920adcddbdc6 (patch)
tree8295fc90ab5f35d21de86c298f5e2262054b1309 /etc/init.d/uanytun
parentimproved variable names at initscript (diff)
fixed wrong renames
Diffstat (limited to 'etc/init.d/uanytun')
-rwxr-xr-xetc/init.d/uanytun12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/init.d/uanytun b/etc/init.d/uanytun
index 48e350b..74e1f4d 100755
--- a/etc/init.d/uanytun
+++ b/etc/init.d/uanytun
@@ -71,7 +71,7 @@ case "$1" in
stop)
echo -n "Stoping $DESC:"
if test -z "$2" ; then
- for PIDFILE in `ls $VARRUN_DIR/$VPNNAME.*.pid 2> /dev/null`; do
+ for PIDFILE in `ls $VARRUN_DIR/$NAME.*.pid 2> /dev/null`; do
VPNNAME=`echo $PIDFILE | cut -c18-`
VPNNAME=${VPNNAME%%.pid}
echo -n " $VPNNAME"
@@ -80,8 +80,8 @@ case "$1" in
else
while shift ; do
[ -z "$1" ] && break
- if test -e $VARRUN_DIR/$VPNNAME.$1.pid ; then
- PIDFILE=`ls $VARRUN_DIR/$VPNNAME.$1.pid 2> /dev/null`
+ if test -e $VARRUN_DIR/$NAME.$1.pid ; then
+ PIDFILE=`ls $VARRUN_DIR/$NAME.$1.pid 2> /dev/null`
VPNNAME=`echo $PIDFILE | cut -c18-`
VPNNAME=${VPNNAME%%.pid}
echo -n " $VPNNAME"
@@ -96,7 +96,7 @@ case "$1" in
reload)
echo -n "Reloading $DESC:"
if test -z "$2" ; then
- for PIDFILE in `ls $VARRUN_DIR/$VPNNAME.*.pid 2> /dev/null`; do
+ for PIDFILE in `ls $VARRUN_DIR/$NAME.*.pid 2> /dev/null`; do
VPNNAME=`echo $PIDFILE | cut -c18-`
VPNNAME=${VPNNAME%%.pid}
echo -n " $VPNNAME"
@@ -106,8 +106,8 @@ case "$1" in
else
while shift ; do
[ -z "$1" ] && break
- if test -e $VARRUN_DIR/$VPNNAME.$1.pid ; then
- PIDFILE=`ls $VARRUN_DIR/$VPNNAME.$1.pid 2> /dev/null`
+ if test -e $VARRUN_DIR/$NAME.$1.pid ; then
+ PIDFILE=`ls $VARRUN_DIR/$NAME.$1.pid 2> /dev/null`
VPNNAME=`echo $PIDFILE | cut -c18-`
VPNNAME=${VPNNAME%%.pid}
echo -n " $VPNNAME"