Fix iproute handling of -host and improve iwconfig scanning

This commit is contained in:
Roy Marples
2007-07-09 09:14:19 +00:00
parent 87d1a3be19
commit e03844fd26
2 changed files with 51 additions and 38 deletions

View File

@@ -118,9 +118,8 @@ _add_route() {
case "$1" in
metric) cmd="${cmd} $1"; have_metric=true ;;
netmask) cmd="${cmd}/$(_netmask2cidr "$2")"; shift ;;
-net) ;;
-host|-net) ;;
-A) [ "$2" = "inet6" ] && shift ;;
-host) cmd="${cmd} scope host" ;;
*) cmd="${cmd} $1" ;;
esac
shift