diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2008-01-25 15:31:29 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2008-01-25 15:31:29 -0800 |
commit | be222d3cf120da650ff9c3f942c9f21261fced90 (patch) | |
tree | 3c7da81c64d236752327c1120e66eb368a87f98e | |
parent | 6ed465caeb12075e52ea23e6ec589c5d4993cda0 (diff) | |
download | vyatta-op-be222d3cf120da650ff9c3f942c9f21261fced90.tar.gz vyatta-op-be222d3cf120da650ff9c3f942c9f21261fced90.zip |
Teach the vyatta-show-interfaces script about PPPOE interfaces.
-rwxr-xr-x | scripts/vyatta-show-interfaces | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/vyatta-show-interfaces b/scripts/vyatta-show-interfaces index 9fda6d5..75d0815 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|tun|wan)* ) +declare -a full_itfs=( /sys/class/net/+(eth|vmnet|lo|tun|wan|pppoe)* ) declare -a itfs declare _do_show=_show_itf_stats @@ -130,7 +130,7 @@ _usage () _add_itfs () { for itf ; do - if [[ $itf != +(eth|vmnet|lo|tun|wan)* ]] ; then + if [[ $itf != +(eth|vmnet|lo|tun|wan|pppoe)* ]] ; then _error 2 \""$itf"\" is not an interface name\! elif [ ! -d /sys/class/net/$itf ] ; then _error 2 $itf: no such interface\! @@ -144,7 +144,7 @@ if [ $# -gt 0 ] ; then if [[ $1 == --+(usage|help) ]] ; then _usage exit 0 - elif [[ $1 == +(ethernet|loopback|system|tunnel|serial) ]] ; then + elif [[ $1 == +(ethernet|loopback|system|tunnel|serial|pppoe) ]] ; then if [ $# -eq 1 ] ; then case $1 in ethernet ) @@ -155,6 +155,8 @@ if [ $# -gt 0 ] ; then full_itfs=( /sys/class/net/tun* ) ;; serial ) full_itfs=( /sys/class/net/wan* ) ;; + pppoe ) + full_itfs=( /sys/class/net/pppoe* ) ;; esac itfs=( ${full_itfs[@]##*/} ) else |