Commit ab68d583 authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-interfaces: fix ip: can't find device 'eth1.3' message

ref #1404
parent 12cce8f0
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment