summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-interfaces
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-12-31 16:54:24 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-12-31 16:54:24 -0800
commit8fbee603ef1ac56c5212fabb1942636471acf7ab (patch)
treeb4ce70cd1b43257edc17056d77e5089dbc18e0e1 /scripts/vyatta-show-interfaces
parent5c2a4dd597fd84da3f3dc4e0f9479f98062f1bfc (diff)
downloadvyatta-op-8fbee603ef1ac56c5212fabb1942636471acf7ab.tar.gz
vyatta-op-8fbee603ef1ac56c5212fabb1942636471acf7ab.zip
Make "show interfaces" work with tunnel interfaces.
Diffstat (limited to 'scripts/vyatta-show-interfaces')
-rwxr-xr-xscripts/vyatta-show-interfaces6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-show-interfaces b/scripts/vyatta-show-interfaces
index 1a71c29..8f54923 100755
--- a/scripts/vyatta-show-interfaces
+++ b/scripts/vyatta-show-interfaces
@@ -25,7 +25,7 @@ shopt -s extglob
shopt -s nullglob
declare progname=${0##*/}
-declare -a full_itfs=( /sys/class/net/+(eth|vmnet|lo|sit|wan)* )
+declare -a full_itfs=( /sys/class/net/+(eth|vmnet|lo|tun|wan)* )
declare -a itfs
declare _do_show=_show_itf_stats
@@ -129,7 +129,7 @@ _usage ()
_add_itfs ()
{
for itf ; do
- if [[ $itf != +(eth|vmnet|lo|sit|wan)* ]] ; then
+ if [[ $itf != +(eth|vmnet|lo|tun|wan)* ]] ; then
_error 2 \""$itf"\" is not an interface name\!
elif [ ! -d /sys/class/net/$itf ] ; then
_error 2 $itf: no such interface\!
@@ -151,7 +151,7 @@ if [ $# -gt 0 ] ; then
loopback )
full_itfs=( /sys/class/net/lo* ) ;;
tunnel )
- full_itfs=( /sys/class/net/sit* ) ;;
+ full_itfs=( /sys/class/net/tun* ) ;;
esac
itfs=( ${full_itfs[@]##*/} )
else