Changeset 17708


Ignore:
Timestamp:
10/01/11 13:36:35 (20 months ago)
Author:
sash
Message:

ovpn: small fix but stull ugly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/openvpn/config/openvpnstate.sh

    r16862 r17708  
    11#!/bin/sh 
    22echo -e "Server: \n" 
    3 echo -e "`/bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{ print $2}'`: `/bin/echo "state" | /usr/bin/nc 127.0.0.1 5001 |awk -F"," '{print $3}'` \n" 
    4 echo -e "Local Address: `/bin/echo "state" | /usr/bin/nc 127.0.0.1 5001 |awk -F"," '{print $4}'` \n" 
     3echo -e "`/bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{ print $2}'`: `/bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{print $3}'` \n" 
     4echo -e "Local Address: `/bin/echo "state" | /usr/bin/nc 127.0.0.1 5002 |awk -F"," '{print $4}'` \n" 
    55echo -e "Remote Address: `ifconfig tun0 |awk '{print $3}'|grep P-t-P|awk -F ":" '{print $2}'`" 
    66 
Note: See TracChangeset for help on using the changeset viewer.