mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-27 17:37:18 +01:00
port-management: populate ports from db only if ethernetPortOrder is given
This commit is contained in:
parent
68d3ed8556
commit
68f6cbc200
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ fi
|
|||
|
||||
touch /etc/config/ports
|
||||
|
||||
if [ -f /sbin/db ] && [ -f /etc/board-db/config/hw ]; then
|
||||
if [ -f /sbin/db -a -n "$(db get hw.board.ethernetPortOrder 2>/dev/null)" ]; then
|
||||
populate_config_from_db
|
||||
elif [ -d /proc/device-tree/ ]; then
|
||||
populate_config_from_device_tree
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue