diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-21 15:29:06 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-21 15:29:06 +0100 |
commit | ab68d58344a5e5421a52dccace155b5a42be4f14 (patch) | |
tree | 808f621b97a7709dfa48822f6d55ab4dc776cd6b /setup-interfaces.in | |
parent | 12cce8f013ffadef77a6455b06a8e692edbfc02e (diff) | |
download | alpine-conf-ab68d58344a5e5421a52dccace155b5a42be4f14.zip |
setup-interfaces: fix ip: can't find device 'eth1.3' message
ref #1404
Diffstat (limited to 'setup-interfaces.in')
-rwxr-xr-x | setup-interfaces.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in index c4ffa47..263beec 100755 --- a/setup-interfaces.in +++ b/setup-interfaces.in @@ -73,7 +73,9 @@ get_default_mask() { } get_default_gateway() { - ip route show dev $1 | awk '/^default/ {print $3}' + if iface_exists $1; then + ip route show dev $1 | awk '/^default/ {print $3}' + fi } ipaddr_help() { |