summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbalocca <rbalocca@fugazi.vyatta.com>2008-01-08 17:03:54 -0800
committerrbalocca <rbalocca@fugazi.vyatta.com>2008-01-08 17:03:54 -0800
commit645f4c520a8d1547639bce6086a2268132bf8be7 (patch)
treef31b43de2c27b623ca8826140fdb6261319f685e
parentf4d3cb9184c68201a1c18be97654df6edbd07369 (diff)
downloadvyatta-op-645f4c520a8d1547639bce6086a2268132bf8be7.tar.gz
vyatta-op-645f4c520a8d1547639bce6086a2268132bf8be7.zip
Fixes for bug # 2596
-rwxr-xr-xscripts/vyatta-show-interfaces5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/vyatta-show-interfaces b/scripts/vyatta-show-interfaces
index 8f54923..9fda6d5 100755
--- a/scripts/vyatta-show-interfaces
+++ b/scripts/vyatta-show-interfaces
@@ -122,6 +122,7 @@ _usage ()
$progname [ INTERFACE ]
$progname loopback [ INTERFACE ]
$progname tunnel [ INTERFACE ]
+ $progname serial [ INTERFACE ]
$progname system [ enabled ]
EOF
}
@@ -143,7 +144,7 @@ if [ $# -gt 0 ] ; then
if [[ $1 == --+(usage|help) ]] ; then
_usage
exit 0
- elif [[ $1 == +(ethernet|loopback|system|tunnel) ]] ; then
+ elif [[ $1 == +(ethernet|loopback|system|tunnel|serial) ]] ; then
if [ $# -eq 1 ] ; then
case $1 in
ethernet )
@@ -152,6 +153,8 @@ if [ $# -gt 0 ] ; then
full_itfs=( /sys/class/net/lo* ) ;;
tunnel )
full_itfs=( /sys/class/net/tun* ) ;;
+ serial )
+ full_itfs=( /sys/class/net/wan* ) ;;
esac
itfs=( ${full_itfs[@]##*/} )
else