aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/iproute2.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-07-09 09:14:19 +0000
committerRoy Marples <roy@marples.name>2007-07-09 09:14:19 +0000
commite03844fd26cf5b6f01949e1c3ded14e5b4d812ec (patch)
tree0b5201ed4e0cb4d8fbb9af846112a87a5412beb0 /net.Linux/iproute2.sh
parent87d1a3be19e0cbba1510ca7b3d4d8e7e347d5cd1 (diff)
Fix iproute handling of -host and improve iwconfig scanning
Diffstat (limited to 'net.Linux/iproute2.sh')
-rw-r--r--net.Linux/iproute2.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/net.Linux/iproute2.sh b/net.Linux/iproute2.sh
index 2c02b40d..30206d03 100644
--- a/net.Linux/iproute2.sh
+++ b/net.Linux/iproute2.sh
@@ -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