mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Don't use wrong device on OMR-Tracker when not yet available
This commit is contained in:
parent
4a23a992f4
commit
cd85e5fb59
3 changed files with 10 additions and 2 deletions
|
@ -61,7 +61,7 @@ _launch_tracker() {
|
|||
[ -z "$ifname" ] && network_get_physdev ifname $1
|
||||
[ -z "$ifname" ] && ifname=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
|
||||
[ -z "$ifname" ] && ifname=$(ifstatus "$1_4" | jsonfilter -q -e '@["l3_device"]')
|
||||
[ -z "$ifname" ] && config_get ifname "$1" device
|
||||
#[ -z "$ifname" ] && config_get ifname "$1" device
|
||||
[ -n "$(echo $ifname | grep '@')" ] && ifname=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
|
||||
|
||||
config_get multipath "$1" multipath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue