[arch-projects] [netctl][PATCH] Don't look into routes if we have IP=no
For IP6=no this also implies we do not wait for DAD. For setting routes but no address, use --- IP=static Address=() Routes=(...) --- --- src/lib/ip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ip b/src/lib/ip index b6692c3..e74c5bb 100644 --- a/src/lib/ip +++ b/src/lib/ip @@ -82,7 +82,7 @@ ip_set() { ;; esac - if [[ $IP ]]; then + if [[ $IP != @(|no) ]]; then # Add static IP routes for route in "${Routes[@]}"; do if ! do_debug ip route add $route dev "$Interface"; then @@ -100,7 +100,7 @@ ip_set() { fi fi - if [[ $IP6 ]]; then + if [[ $IP6 != @(|no) ]]; then if [[ $IP6 == @(stateless|static) ]]; then for addr in "${Address6[@]}"; do if ! do_debug ip -6 addr add $addr $(is_yes "${SkipDAD:-no}" && printf nodad) dev "$Interface"; then -- 2.2.1
participants (1)
-
Jouke Witteveen