[patchteam] Upgrade wing package to latest git revision - Roberto Riggio - 2012-08-06 20:16:45
git-svn-id: svn://svn.openwrt.org/openwrt/packages@33033 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2006, Roberto Riggio
|
||||
# Copyright (c) 2012, Roberto Riggio
|
||||
#
|
||||
# All rights reserved.
|
||||
#
|
||||
@ -37,6 +37,7 @@ LINKS=0
|
||||
ARP=0
|
||||
GATEWAY=0
|
||||
PROBES=0
|
||||
INTERFACES=0
|
||||
|
||||
show_status() {
|
||||
|
||||
@ -58,6 +59,11 @@ show_status() {
|
||||
read_handler lt.hosts
|
||||
}
|
||||
|
||||
[ $INTERFACES = 1 ] && {
|
||||
printf "\nInterfaces:\n"
|
||||
read_handler lt.interfaces
|
||||
}
|
||||
|
||||
[ $LINKS = 1 ] && {
|
||||
printf "\nLinks:\n"
|
||||
read_handler lt.links
|
||||
@ -82,6 +88,8 @@ show_status() {
|
||||
for interface in $interfaces; do
|
||||
printf "\nBroadcast statistics ($interface):\n"
|
||||
read_handler wr/es/es_$interface.bcast_stats
|
||||
printf "\nBroadcast statistics HT ($interface):\n"
|
||||
read_handler wr/es/es_$interface.bcast_stats_ht
|
||||
done
|
||||
}
|
||||
|
||||
@ -97,9 +105,10 @@ if [ $# -eq 0 ]; then
|
||||
ARP=1
|
||||
GATEWAY=1
|
||||
PROBES=1
|
||||
INTERFACES=1
|
||||
fi
|
||||
|
||||
while getopts "rshlagp" OPTVAL
|
||||
while getopts "rshlagpi" OPTVAL
|
||||
do
|
||||
case $OPTVAL in
|
||||
r) ROUTES=1
|
||||
@ -110,6 +119,8 @@ do
|
||||
;;
|
||||
l) LINKS=1
|
||||
;;
|
||||
i) INTERFACES=1
|
||||
;;
|
||||
a) ARP=1
|
||||
;;
|
||||
g) GATEWAY=1
|
||||
|
Reference in New Issue
Block a user