port-management: populate ports from db only if ethernetPortOrder is given

This commit is contained in:
Sukru Senli 2022-09-09 09:45:42 +02:00
parent 68d3ed8556
commit 68f6cbc200

View file

@ -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