| … | |
… | |
| 202 | # |
202 | # |
| 203 | # Adds an the specified address to the interface |
203 | # Adds an the specified address to the interface |
| 204 | # returns 0 on success and non-zero on failure |
204 | # returns 0 on success and non-zero on failure |
| 205 | iproute2_add_address() { |
205 | iproute2_add_address() { |
| 206 | local iface=${1} x |
206 | local iface=${1} x |
|
|
207 | |
|
|
208 | iproute2_exists ${iface} true || return 1 |
| 207 | |
209 | |
| 208 | # Extract the config |
210 | # Extract the config |
| 209 | local -a config=( "$@" ) |
211 | local -a config=( "$@" ) |
| 210 | config=( ${config[@]:1} ) |
212 | config=( ${config[@]:1} ) |
| 211 | |
213 | |