Merge pull request #5 from mmunz/master
if we could not get the l3 device in olsrd_write_interface then try to g...
This commit is contained in:
commit
4212839bf1
1 changed files with 6 additions and 0 deletions
|
@ -564,6 +564,12 @@ olsrd_write_interface() {
|
|||
if network_get_device IFNAME "$interface"; then
|
||||
ifnames="$ifnames \"$IFNAME\""
|
||||
ifsglobal="$ifsglobal $IFNAME"
|
||||
elif network_get_physdev IFNAME "$interface"; then
|
||||
local proto="$(uci -q get network.${interface}.proto)"
|
||||
if [ "$proto" = "static" -o "$proto" = "none" ]; then
|
||||
ifnames="$ifnames \"$IFNAME\""
|
||||
ifsglobal="$ifsglobal $IFNAME"
|
||||
fi
|
||||
else
|
||||
log "$funcname() Warning: Interface '$interface' not found, skipped"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue